]> git.baikalelectronics.ru Git - kernel.git/commit
pata_it821x: (partially) fix DMA in RAID mode
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 11 Jun 2007 09:40:07 +0000 (11:40 +0200)
committerJeff Garzik <jeff@garzik.org>
Wed, 20 Jun 2007 23:56:21 +0000 (19:56 -0400)
commit78e5cbb6ef66781b24d069a02d83189a795da5e3
tree7d82b5165a8d6bca8569ed6722413ef5688a294f
parentf366535d0dc6f579e05c2e08ec93581eecf90527
pata_it821x: (partially) fix DMA in RAID mode

Code intended to check DMA status was checking DMA command register.

Moreover firmware seems to "forget" to set DMA capable bit for the
slave device (at least in RAID mode but without ITE RAID volumes) so
check device ID for DMA capable bit when deciding whether to use DMA
and remove DMA status check completely.

Thanks to Pavol Simo for the bugreport and testing the initial fix.

This change unfortunately still doesn't fix DMA in RAID mode (which
works fine with IDE it821x) but Alan is working on the missing pieces
(pata_it821x vs libata EH issues).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Alan Cox <alan@redhat.com>
Cc: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_it821x.c