aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-timings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-timings.c b/drivers/ide/ide-timings.c
index c7a65ee72310..0e05f75934c9 100644
--- a/drivers/ide/ide-timings.c
+++ b/drivers/ide/ide-timings.c
@@ -166,7 +166,7 @@ int ide_timing_compute(ide_drive_t *drive, u8 speed,
166 if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ 166 if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */
167 memset(&p, 0, sizeof(p)); 167 memset(&p, 0, sizeof(p));
168 168
169 if (speed >= XFER_PIO_0 && speed <= XFER_SW_DMA_0) { 169 if (speed >= XFER_PIO_0 && speed < XFER_SW_DMA_0) {
170 if (speed <= XFER_PIO_2) 170 if (speed <= XFER_PIO_2)
171 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; 171 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO];
172 else if ((speed <= XFER_PIO_4) || 172 else if ((speed <= XFER_PIO_4) ||