aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorAlan <alan@lxorguk.ukuu.org.uk>2006-12-07 07:41:18 -0500
committerJeff Garzik <jeff@garzik.org>2006-12-07 07:37:07 -0500
commitfd3367af3d1212f645094c4b5c4d458bdd061475 (patch)
tree8ff098b10d2cd879252c2ad470b8bbe71f7b71a5 /drivers/ata
parent25b93d81b9abe3b786bdf3396d728bb13b0a911c (diff)
[PATCH] libata: Incorrect timing computation for PIO5/6
The ata timing computation code makes some mistakes in PIO5/6 because a check was not updated correctly when I put this support into the kernel. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index d2e686371870..011c0a8a2dcc 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -2303,7 +2303,7 @@ int ata_timing_compute(struct ata_device *adev, unsigned short speed,
2303 * DMA cycle timing is slower/equal than the fastest PIO timing. 2303 * DMA cycle timing is slower/equal than the fastest PIO timing.
2304 */ 2304 */
2305 2305
2306 if (speed > XFER_PIO_4) { 2306 if (speed > XFER_PIO_6) {
2307 ata_timing_compute(adev, adev->pio_mode, &p, T, UT); 2307 ata_timing_compute(adev, adev->pio_mode, &p, T, UT);
2308 ata_timing_merge(&p, t, t, ATA_TIMING_ALL); 2308 ata_timing_merge(&p, t, t, ATA_TIMING_ALL);
2309 } 2309 }