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

Commit 8ac3a47c authored by Stefan Richter's avatar Stefan Richter
Browse files

firewire: fw-sbp2: relax SCSI DMA alignment

parent 1dc3bea7
Loading
Loading
Loading
Loading
+2 −5
Original line number Original line Diff line number Diff line
@@ -1518,11 +1518,8 @@ static int sbp2_scsi_slave_alloc(struct scsi_device *sdev)


	sdev->allow_restart = 1;
	sdev->allow_restart = 1;


	/*
	/* SBP-2 requires quadlet alignment of the data buffers. */
	 * Update the dma alignment (minimum alignment requirements for
	blk_queue_update_dma_alignment(sdev->request_queue, 4 - 1);
	 * start and end of DMA transfers) to be a sector
	 */
	blk_queue_update_dma_alignment(sdev->request_queue, 511);


	if (lu->tgt->workarounds & SBP2_WORKAROUND_INQUIRY_36)
	if (lu->tgt->workarounds & SBP2_WORKAROUND_INQUIRY_36)
		sdev->inquiry_len = 36;
		sdev->inquiry_len = 36;