]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit0f05df8b3b41bc258bdf520b72e8cf7c524048b7
treee6fd95f097da4785a1e0fb195044a745de8e89aa
parent3a2755af37b317d47fdc3dd15178adaf5d47263e
[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