Skip to contentSkip to conversation

libata: Incorrect timing computation for PIO5/6

PATCH Applied Alan 2 participants 2 messages Dec 7, 2006 libata

lore
Share & tools
lore

Alan

author
#0 lore raw

PATCH 1/1 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.

drivers/ata/libata-core.c +1 -1
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.19-rc6-mm1/drivers/ata/libata-core.c linux-2.6.19-rc6-mm1/drivers/ata/libata-core.c
@@ -2164,7 +2164,7 @@
 	 * DMA cycle timing is slower/equal than the fastest PIO timing.
 	 */
 
-	if (speed > XFER_PIO_4) {
+	if (speed > XFER_PIO_6) {
 		ata_timing_compute(adev, adev->pio_mode, &p, T, UT);
 		ata_timing_merge(&p, t, t, ATA_TIMING_ALL);
 	}
Applied
#1 lore raw
Quoted 4 lines · Alan

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.

applied