Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 473ffe65 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Stefan Richter
Browse files

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: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 0ad8c6a2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 */