Skip to content

Commit 473ffe6

Browse files
cladischStefan Richter
authored andcommitted
firewire: sbp2: give correct DMA device to scsi framework
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 <clemens@ladisch.de> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
1 parent 0ad8c6a commit 473ffe6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/firewire/sbp2.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,8 @@ static int sbp2_probe(struct device *dev)
11631163

11641164
shost->max_cmd_len = SBP2_MAX_CDB_SIZE;
11651165

1166-
if (scsi_add_host(shost, &unit->device) < 0)
1166+
if (scsi_add_host_with_dma(shost, &unit->device,
1167+
device->card->device) < 0)
11671168
goto fail_shost_put;
11681169

11691170
/* implicit directory ID */

0 commit comments

Comments
 (0)