diff options
author | James Bottomley <James.Bottomley@suse.de> | 2009-11-05 14:33:12 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:01:30 -0500 |
commit | d139b9bd0e52dda14fd13412e7096e68b56d0076 (patch) | |
tree | 518daa6384ff606ec77dd8fe4714ea2f177d92c4 /drivers/scsi/lpfc/lpfc_init.c | |
parent | 5917290ce9b376866b165d02a5ed88d5ecdb32d0 (diff) |
[SCSI] scsi_lib_dma: fix bug with dma maps on nested scsi objects
Some of our virtual SCSI hosts don't have a proper bus parent at the
top, which can be a problem for doing DMA on them
This patch makes the host device cache a pointer to the physical bus
device and provides an extra API for setting it (the normal API picks
it up from the parent). This patch also modifies the qla2xxx and lpfc
vport logic to use the new DMA host setting API.
Acked-By: James Smart <james.smart@emulex.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 562d8cee874b..f913f1e93635 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -2408,7 +2408,7 @@ lpfc_create_port(struct lpfc_hba *phba, int instance, struct device *dev) | |||
2408 | vport->els_tmofunc.function = lpfc_els_timeout; | 2408 | vport->els_tmofunc.function = lpfc_els_timeout; |
2409 | vport->els_tmofunc.data = (unsigned long)vport; | 2409 | vport->els_tmofunc.data = (unsigned long)vport; |
2410 | 2410 | ||
2411 | error = scsi_add_host(shost, dev); | 2411 | error = scsi_add_host_with_dma(shost, dev, &phba->pcidev->dev); |
2412 | if (error) | 2412 | if (error) |
2413 | goto out_put_shost; | 2413 | goto out_put_shost; |
2414 | 2414 | ||