Re: Regression introduced by6f381fa344911d5a234b13574433cf23036f9467 [[SCSI] scsi_lib: use correct DMAdevice in __scsi_alloc_queue]

From: Konrad Rzeszutek Wilk
Date: Mon May 07 2012 - 13:56:47 EST


> > reverting above mentioned git commit fixes the issue.
>
> Does Jame's below patch help?
>
> http://www.spinics.net/lists/linux-scsi/msg59106.html

Yes. please add Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
on the latter part of that patch:


diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 351dc0b..a3a056a 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -218,6 +218,9 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,

if (!shost->shost_gendev.parent)
shost->shost_gendev.parent = dev ? dev : &platform_bus;
+ if (!dma_dev)
+ dma_dev = shost->shost_gendev.parent;
+
shost->dma_dev = dma_dev;

error = device_add(&shost->shost_gendev);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/