Alan Cox
b15b3ebae1
libata: Fix a large collection of DMA mode mismatches
...
Dave Müller sent a diff for the pata_oldpiix that highlighted a problem
where a lot of the ATA drivers assume dma_mode == 0 means "no DMA" while
the core code uses 0xFF.
This turns out to have other consequences such as code doing >= XFER_UDMA_0
also catching 0xFF as UDMAlots. Fortunately it doesn't generally affect
set_dma_mode, although some drivers call back into their own set mode code
from other points.
Having been through the drivers I've added helpers for using_udma/using_mwdma
dma_enabled so that people don't open code ranges that may change (eg if UDMA8
appears somewhere)
Thanks to David for the initial bits
[and added fix for pata_oldpiix from and signed-off-by Dave Mueller
<dave.mueller@gmx.ch > -jg]
Signed-off-by: Alan Cox <alan@redhat.com >
Signed-off-by: Jeff Garzik <jgarzik@redhat.com >
2008-08-22 02:27:49 -04:00
..
2008-08-10 23:32:07 +02:00
2008-08-06 20:14:06 -07:00
2008-07-30 14:21:05 +01:00
2008-07-31 00:38:01 -07:00
2008-07-30 10:10:23 +01:00
2008-08-05 14:33:46 -07:00
2008-08-13 17:33:01 -07:00
2008-08-12 10:13:38 +10:00
2008-08-18 21:40:05 +02:00
2008-08-12 16:07:30 -07:00
2008-08-01 20:31:32 +02:00
2008-08-12 16:07:27 -07:00
2008-08-04 21:56:09 -07:00
2008-08-12 16:07:30 -07:00
2008-08-14 22:59:43 +10:00
2008-08-15 08:35:44 -07:00
2008-07-31 16:21:13 -07:00
2008-07-30 09:41:45 -07:00
2008-07-30 09:41:43 -07:00
2008-07-30 10:35:49 -07:00
2008-08-14 09:35:23 +10:00
2008-08-07 02:22:54 -04:00
2008-08-07 02:22:08 -04:00
2008-08-20 13:19:51 -07:00
2008-08-20 15:40:32 -07:00
2008-08-01 11:25:23 -04:00
2008-08-12 16:07:31 -07:00
2008-07-28 16:30:21 -07:00
2008-08-15 08:35:42 -07:00
2008-08-12 16:07:29 -07:00
2008-08-08 15:13:27 +01:00
2008-08-05 18:17:01 +02:00
2008-08-04 15:09:07 -04:00
2008-08-15 19:52:19 -07:00
2008-08-02 18:36:10 +01:00
2008-08-12 17:52:54 +10:00
2008-08-05 14:33:48 -07:00
2008-07-29 12:12:48 +02:00
2008-07-30 09:41:43 -07:00
2008-07-31 20:45:24 -07:00
2008-08-16 16:46:57 -07:00
2008-08-16 16:46:57 -07:00
2008-07-30 09:41:45 -07:00
2008-08-16 16:46:57 -07:00
2008-08-12 16:07:29 -07:00
2008-08-15 08:35:42 -07:00
2008-07-29 12:33:53 +03:00
2008-07-29 12:34:02 +03:00
2008-08-22 02:27:49 -04:00
2008-08-08 16:17:16 -07:00
2008-08-11 15:25:07 +02:00
2008-08-04 10:58:24 +09:00
2008-08-02 16:28:50 +02:00
2008-08-16 16:45:56 -07:00
2008-08-16 16:45:56 -07:00
2008-07-28 16:30:21 -07:00
2008-08-01 11:25:32 -04:00
2008-08-04 23:04:08 -07:00
2008-08-04 21:31:34 -07:00
2008-08-04 21:31:34 -07:00
2008-08-04 16:50:38 -07:00
2008-08-15 09:15:47 -07:00
2008-07-28 14:56:57 -07:00
2008-08-18 13:48:04 -07:00
2008-07-28 14:56:09 -07:00
2008-08-07 15:33:36 -07:00
2008-08-20 15:40:32 -07:00
2008-08-05 14:33:50 -07:00
2008-08-07 17:18:47 -07:00
2008-08-01 11:25:25 -04:00
2008-08-11 09:30:24 +02:00
2008-07-28 16:30:20 -07:00
2008-08-15 08:35:42 -07:00
2008-07-29 16:36:33 -04:00
2008-08-20 15:40:32 -07:00
2008-08-14 09:35:23 +10:00
2008-08-17 22:47:30 +10:00
2008-08-12 16:07:30 -07:00
2008-08-15 19:52:30 -07:00
2008-08-05 09:28:47 +03:00
2008-07-30 03:27:25 -07:00
2008-08-11 09:30:24 +02:00
2008-08-11 09:30:24 +02:00
2008-08-15 08:35:42 -07:00
2008-08-12 16:07:30 -07:00
2008-08-07 17:18:47 -07:00
2008-08-15 10:34:07 -07:00
2008-08-15 10:34:07 -07:00
2008-08-13 17:32:49 -07:00
2008-08-16 16:46:57 -07:00
2008-08-16 16:45:56 -07:00
2008-08-15 10:34:07 -07:00