Bartlomiej Zolnierkiewicz 509426bd46 pata_cmd64x: fix overclocking of UDMA0-2 modes
adev->dma_mode stores the transfer mode value not UDMA mode number
so the condition in cmd64x_set_dmamode() is always true and the higher
UDMA clock is always selected.  This can potentially result in data
corruption when UDMA33 device is used, when 40-wire cable is used or
when the error recovery code decides to lower the device speed down.

The issue was introduced in the commit 6a40da0 ("libata cmd64x: whack
into a shape that looks like the documentation") which goes back to
kernel 2.6.20.

Cc: stable@kernel.org
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-12-20 15:42:12 -05:00
..
2009-12-09 17:14:38 +11:00
2009-10-06 00:26:27 -04:00
2009-03-24 22:45:05 -04:00
2009-08-12 06:16:47 -04:00
2009-12-03 14:36:17 -05:00
2009-12-03 14:36:17 -05:00
2009-03-28 20:29:51 +00:00
2009-06-08 09:12:28 -07:00
2009-09-11 02:25:58 -04:00
2009-12-03 16:11:24 -05:00
2009-09-11 02:25:58 -04:00
2009-10-16 06:22:40 -04:00
2009-12-03 14:36:17 -05:00
2009-09-17 16:46:34 -04:00
2008-01-23 05:24:15 -05:00
2009-09-08 21:17:36 -04:00
2007-07-02 10:17:42 -04:00