Linux ATA/IDE development
 help / color / mirror / Atom feed
* [PATCH #upstream-fixes] pata_cmd64x: revert commit d62f5576
@ 2010-08-17 12:13 Tejun Heo
  2010-08-17 12:56 ` Bartlomiej Zolnierkiewicz
  2010-08-17 21:30 ` Jeff Garzik
  0 siblings, 2 replies; 8+ messages in thread
From: Tejun Heo @ 2010-08-17 12:13 UTC (permalink / raw)
  To: Jeff Garzik, "linux-ide@vger.kernel.org" st, stable
  Cc: Bartlomiej Zolnierkiewicz, Alan Cox, Milan Kocian

Commit d62f5576 (pata_cmd64x: fix handling of address setup timings)
incorrectly called ata_timing_compute() on UDMA mode on 0 @UT leading
to devide by zero fault.  Revert it until better fix is available.
This is reported in bko#16607 by Milan Kocian who also root caused it.

  https://bugzilla.kernel.org/show_bug.cgi?id=16607

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-and-root-caused-by: Milan Kocian <milan.kocian@wq.cz>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: stable@kernel.org
---
 drivers/ata/pata_cmd64x.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/ata/pata_cmd64x.c b/drivers/ata/pata_cmd64x.c
index 9f5da1c..905ff76 100644
--- a/drivers/ata/pata_cmd64x.c
+++ b/drivers/ata/pata_cmd64x.c
@@ -121,14 +121,8 @@ static void cmd64x_set_timing(struct ata_port *ap, struct ata_device *adev, u8 m

 		if (pair) {
 			struct ata_timing tp;
-
 			ata_timing_compute(pair, pair->pio_mode, &tp, T, 0);
 			ata_timing_merge(&t, &tp, &t, ATA_TIMING_SETUP);
-			if (pair->dma_mode) {
-				ata_timing_compute(pair, pair->dma_mode,
-						&tp, T, 0);
-				ata_timing_merge(&tp, &t, &t, ATA_TIMING_SETUP);
-			}
 		}
 	}


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-08-19 10:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 12:13 [PATCH #upstream-fixes] pata_cmd64x: revert commit d62f5576 Tejun Heo
2010-08-17 12:56 ` Bartlomiej Zolnierkiewicz
2010-08-17 15:01   ` Tejun Heo
2010-08-17 15:39     ` Alan Cox
2010-08-17 16:39       ` Bartlomiej Zolnierkiewicz
2010-08-17 17:41       ` Sergei Shtylyov
2010-08-17 21:30 ` Jeff Garzik
2010-08-19 10:30   ` Milan Kocian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox