Home Home > GIT Browse > SLE11-SP4
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bond <dbond@suse.com>2018-05-31 16:45:37 -0400
committerMartin Wilck <mwilck@suse.com>2018-06-06 16:54:07 +0200
commit83925d1de3e6801059edc0853800022286c51c8a (patch)
tree0e5c0678ccc08d81f5494d7b9dde86ab648dafab
parentbdf9d489f6bf4cefd8cb820907d18aea7d5f819a (diff)
qla2xxx: Mask off Scope bits in retry delay (bsc#1068054).
-rw-r--r--drivers/scsi/qla2xxx/qla_isr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 736aea2eb5da..578816a19c04 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -2120,8 +2120,12 @@ qla2x00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt)
ox_id = le16_to_cpu(sts24->ox_id);
par_sense_len = sizeof(sts24->data);
/* Valid values of the retry delay timer are 0x1-0xffef */
- if (sts24->retry_delay > 0 && sts24->retry_delay < 0xfff1)
- retry_delay = sts24->retry_delay;
+ if (sts24->retry_delay > 0 && sts24->retry_delay < 0xfff1) {
+ retry_delay = sts24->retry_delay & 0x3fff;
+ ql_dbg(ql_dbg_io, vha, 0x3033,
+ "%s: scope=%#x retry_delay=%#x\n", __func__,
+ sts24->retry_delay >> 14, retry_delay);
+ }
} else {
if (scsi_status & SS_SENSE_LEN_VALID)
sense_len = le16_to_cpu(sts->req_sense_length);