projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dc3bea
)
firewire: fw-sbp2: relax SCSI DMA alignment
author
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Sun, 27 Jan 2008 21:31:27 +0000
(22:31 +0100)
committer
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Fri, 18 Apr 2008 15:55:32 +0000
(17:55 +0200)
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-sbp2.c
patch
|
blob
|
history
diff --git
a/drivers/firewire/fw-sbp2.c
b/drivers/firewire/fw-sbp2.c
index c7aba5cff5d28b759d0b7cf4653e322feab276b0..ea62e825a3b629362f3041fb063973b927b9b19d 100644
(file)
--- a/
drivers/firewire/fw-sbp2.c
+++ b/
drivers/firewire/fw-sbp2.c
@@
-1518,11
+1518,8
@@
static int sbp2_scsi_slave_alloc(struct scsi_device *sdev)
sdev->allow_restart = 1;
- /*
- * Update the dma alignment (minimum alignment requirements for
- * start and end of DMA transfers) to be a sector
- */
- blk_queue_update_dma_alignment(sdev->request_queue, 511);
+ /* SBP-2 requires quadlet alignment of the data buffers. */
+ blk_queue_update_dma_alignment(sdev->request_queue, 4 - 1);
if (lu->tgt->workarounds & SBP2_WORKAROUND_INQUIRY_36)
sdev->inquiry_len = 36;