sata_inic162x: use IDMA for ATAPI commands
commitb3f677e501a494aa1582d4ff35fb3ac6f0a59b08
authorTejun Heo <htejun@gmail.com>
Wed, 30 Apr 2008 07:35:14 +0000 (30 16:35 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 6 May 2008 15:40:55 +0000 (6 11:40 -0400)
tree07742b58e6ad35add7cefc5027a87a25e72bb8d1
parent049e8e04986bde66df9648d88d0960ab4cbd6992
sata_inic162x: use IDMA for ATAPI commands

Use IDMA for ATAPI commands.  Write and some misc commands time out
when executed using ATAPI_PROT_DMA but ATAPI_PROT_PIO works fine.  As
PIO is driven by DMA too, it doesn't make any noticeable difference
for native SATA devices.  inic_check_atapi_dma() is implemented to
force PIO for those ATAPI commands.

After this change, sata_inic162x issues all commands using IDMA.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_inic162x.c