diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-06-17 17:52:08 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-07-09 18:07:44 -0400 |
commit | cf47c7a26ca13b944900dce208890c5b6d5f3a14 (patch) | |
tree | b0351b1c0124ad80ea09631ccfc9e1c3ba6b9dd2 /drivers/firewire | |
parent | dae1a3aa8ebdd30fbba56a8d4e22f92455fb0861 (diff) |
firewire: fw-sbp2: implement max sectors limit for some old bridges
This currently only affects one bridge in the hardwired blacklist.
I don't own one of those, hence haven't tested it.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/fw-sbp2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c index 851c2da060d..49f7fd52ae8 100644 --- a/drivers/firewire/fw-sbp2.c +++ b/drivers/firewire/fw-sbp2.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/device.h> | 34 | #include <linux/device.h> |
35 | #include <linux/scatterlist.h> | 35 | #include <linux/scatterlist.h> |
36 | #include <linux/dma-mapping.h> | 36 | #include <linux/dma-mapping.h> |
37 | #include <linux/blkdev.h> | ||
37 | #include <linux/timer.h> | 38 | #include <linux/timer.h> |
38 | 39 | ||
39 | #include <scsi/scsi.h> | 40 | #include <scsi/scsi.h> |
@@ -1080,7 +1081,8 @@ static int sbp2_scsi_slave_configure(struct scsi_device *sdev) | |||
1080 | fw_notify("setting fix_capacity for %s\n", unit->device.bus_id); | 1081 | fw_notify("setting fix_capacity for %s\n", unit->device.bus_id); |
1081 | sdev->fix_capacity = 1; | 1082 | sdev->fix_capacity = 1; |
1082 | } | 1083 | } |
1083 | 1084 | if (sd->workarounds & SBP2_WORKAROUND_128K_MAX_TRANS) | |
1085 | blk_queue_max_sectors(sdev->request_queue, 128 * 1024 / 512); | ||
1084 | return 0; | 1086 | return 0; |
1085 | } | 1087 | } |
1086 | 1088 | ||