Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63603
b: refs/heads/master
c: 25659f7
h: refs/heads/master
i:
  63601: b9e4bb9
  63599: 67041eb
v: v3
  • Loading branch information
Stefan Richter committed Aug 2, 2007
1 parent efcdabf commit d2e2cc0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e4f8cac5e07528f7e0bc21d3682c16c9de993ecb
refs/heads/master: 25659f7183376c6b37661da6141d5eaa21479061
5 changes: 4 additions & 1 deletion trunk/drivers/firewire/fw-sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ static int sbp2_scsi_queuecommand(struct scsi_cmnd *cmd, scsi_done_fn_t done)
struct fw_unit *unit = sd->unit;
struct fw_device *device = fw_device(unit->device.parent);
struct sbp2_command_orb *orb;
unsigned max_payload;

/*
* Bidirectional commands are not yet implemented, and unknown
Expand Down Expand Up @@ -1017,8 +1018,10 @@ static int sbp2_scsi_queuecommand(struct scsi_cmnd *cmd, scsi_done_fn_t done)
* specifies the max payload size as 2 ^ (max_payload + 2), so
* if we set this to max_speed + 7, we get the right value.
*/
max_payload = min(device->max_speed + 7,
device->card->max_receive - 1);
orb->request.misc =
COMMAND_ORB_MAX_PAYLOAD(device->max_speed + 7) |
COMMAND_ORB_MAX_PAYLOAD(max_payload) |
COMMAND_ORB_SPEED(device->max_speed) |
COMMAND_ORB_NOTIFY;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/firewire/fw-transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ struct fw_card {
unsigned long reset_jiffies;

unsigned long long guid;
int max_receive;
unsigned max_receive;
int link_speed;
int config_rom_generation;

Expand Down

0 comments on commit d2e2cc0

Please sign in to comment.