Skip to content

Commit

Permalink
firewire: sbp2: give correct DMA device to scsi framework
Browse files Browse the repository at this point in the history
The sbp2 driver does DMA not on the unit but on the card device.

The driver worked even with the wrong device because at the moment, it
happens to reimplement the DMA functions of the SCSI framework.

Signed-off-by: Clemens Ladisch <[email protected]>
Signed-off-by: Stefan Richter <[email protected]>
  • Loading branch information
cladisch authored and Stefan Richter committed May 21, 2012
1 parent 0ad8c6a commit 473ffe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/firewire/sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,8 @@ static int sbp2_probe(struct device *dev)

shost->max_cmd_len = SBP2_MAX_CDB_SIZE;

if (scsi_add_host(shost, &unit->device) < 0)
if (scsi_add_host_with_dma(shost, &unit->device,
device->card->device) < 0)
goto fail_shost_put;

/* implicit directory ID */
Expand Down

0 comments on commit 473ffe6

Please sign in to comment.