diff options
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 4a3a5ae7bb45..32fc41c1da30 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -2938,7 +2938,7 @@ int ata_timing_compute(struct ata_device *adev, unsigned short speed, | |||
2938 | if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ | 2938 | if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ |
2939 | memset(&p, 0, sizeof(p)); | 2939 | memset(&p, 0, sizeof(p)); |
2940 | 2940 | ||
2941 | if (speed >= XFER_PIO_0 && speed <= XFER_SW_DMA_0) { | 2941 | if (speed >= XFER_PIO_0 && speed < XFER_SW_DMA_0) { |
2942 | if (speed <= XFER_PIO_2) | 2942 | if (speed <= XFER_PIO_2) |
2943 | p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; | 2943 | p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; |
2944 | else if ((speed <= XFER_PIO_4) || | 2944 | else if ((speed <= XFER_PIO_4) || |