Signed-off-by: Stefan Richter <[EMAIL PROTECTED]>
---

Not run-time tested yet.

 drivers/firewire/fw-sbp2.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Index: linux-2.6.24-git3/drivers/firewire/fw-sbp2.c
===================================================================
--- linux-2.6.24-git3.orig/drivers/firewire/fw-sbp2.c
+++ linux-2.6.24-git3/drivers/firewire/fw-sbp2.c
@@ -1309,11 +1309,8 @@ static int sbp2_scsi_slave_alloc(struct 
 
        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;

-- 
Stefan Richter
-=====-==--- ---= ==-==
http://arcgraph.de/sr/

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to