diff options
author | Matthew Wilcox <matthew@wil.cx> | 2006-02-12 11:28:19 -0500 |
---|---|---|
committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-12 12:13:09 -0500 |
commit | e2230eac17486e2ee07091d54d898eb40bcd0fdd (patch) | |
tree | ad0a561db979d344239dde2ce7632345cdb8f870 /drivers/scsi | |
parent | 61c41823c50302ca6cd455c48a1395f944c61f8f (diff) |
[SCSI] sym2: Mask off opcode from RBC
pm->sg.size is set from the Residual Byte Count register. However,
the upper byte of the RBC is the opcode of the instruction that was
executing, so we need to mask it off. This fixes some spurious rejects
of IGNORE WIDE RESIDUE messages.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index 8260f040d39c..f4854c33f48d 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c | |||
@@ -3588,7 +3588,7 @@ static int sym_evaluate_dp(struct sym_hcb *np, struct sym_ccb *cp, u32 scr, int | |||
3588 | 3588 | ||
3589 | if (pm) { | 3589 | if (pm) { |
3590 | dp_scr = scr_to_cpu(pm->ret); | 3590 | dp_scr = scr_to_cpu(pm->ret); |
3591 | dp_ofs -= scr_to_cpu(pm->sg.size); | 3591 | dp_ofs -= scr_to_cpu(pm->sg.size) & 0x00ffffff; |
3592 | } | 3592 | } |
3593 | 3593 | ||
3594 | /* | 3594 | /* |