From: Lin Ming Date: Thu, 12 Apr 2012 05:50:39 +0000 (+0800) Subject: [SCSI] libata: Pass correct DMA device to scsi host X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f8fc75dc576eac0c996e4a792a4701819d999260;p=openwrt%2Fstaging%2Fblogic.git [SCSI] libata: Pass correct DMA device to scsi host Use scsi_add_host_with_dma in ata_scsi_add_hosts to pass in the correct DMA device(ATA host). Bug report: http://marc.info/?l=linux-ide&m=133177818318187&w=2 Reported-and-tested-by: Jörg Sommer Acked-by: Jeff Garzik Signed-off-by: Lin Ming Signed-off-by: James Bottomley --- diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 93dabdcd2cbe..7832b1ad2327 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -3399,7 +3399,8 @@ int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht) */ shost->max_host_blocked = 1; - rc = scsi_add_host(ap->scsi_host, &ap->tdev); + rc = scsi_add_host_with_dma(ap->scsi_host, + &ap->tdev, ap->host->dev); if (rc) goto err_add; }