Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 <joerg@alea.gnuu.de>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

authored by

Lin Ming and committed by
James Bottomley
f8fc75dc 6f381fa3

+2 -1
+2 -1
drivers/ata/libata-scsi.c
··· 3399 3399 */ 3400 3400 shost->max_host_blocked = 1; 3401 3401 3402 - rc = scsi_add_host(ap->scsi_host, &ap->tdev); 3402 + rc = scsi_add_host_with_dma(ap->scsi_host, 3403 + &ap->tdev, ap->host->dev); 3403 3404 if (rc) 3404 3405 goto err_add; 3405 3406 }