]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libsas, aic94xx: fix dma mapping cockups with ATA
authorJames Bottomley <James.Bottomley@steeleye.com>
Mon, 16 Jul 2007 18:41:04 +0000 (13:41 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Wed, 18 Jul 2007 16:16:14 +0000 (11:16 -0500)
commit537026087fcbf3d9074d06a87a244058be1d6167
treee6fd95f097da4785a1e0fb195044a745de8e89aa
parent59749cdcd55c696d5e59202d5b5ddf3da1ed3a57
[SCSI] libsas, aic94xx: fix dma mapping cockups with ATA

This one was noticed by Gilbert Wu of Adaptec:

The libata core actually does the DMA mapping for you, so there has to
be an exception in the device drivers that *don't* do dma mapping for
ATA commands.  However, since we've already done this, libsas must now
dma map any ATA commands that it wishes to issue ... and yes, this is a
horrible mess.

Additionally, the test in aic94xx for ATA protocols isn't quite right.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aic94xx/aic94xx_task.c
drivers/scsi/libsas/sas_discover.c
include/scsi/scsi_transport_sas.h