aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_def.h
diff options
context:
space:
mode:
authorKaren Higgins <karen.higgins@qlogic.com>2009-07-15 16:02:58 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-07-30 09:50:00 -0400
commit94bced3c1b371014cbd187f2df5539b13a0e3b90 (patch)
treed99c75b2738f3629bd835e36f70fa611b1f8655a /drivers/scsi/qla4xxx/ql4_def.h
parent6187c242089d334102be76427a5a020240e6c19a (diff)
[SCSI] qla4xxx: Correct Extended Sense Data Errors
Fixed sense data errors occurring above the first 32 bytes, as required by some third party applications. Sense data in the first 32 bytes has always been correct. Patch updated to use srb data variables instead of scsi command scratchpad data area, as scratchpad area is already used. Also, corrected debug print alignment bug in dump_buffer routine. Changed KERN_DEBUG to KERN_INFO in printk statements in this routine. Changed version number to 5.01.00-k9 Signed-off-by: Karen Higgins <karen.higgins@qlogic.com> [michaelc: fixed checkpath.pl errors] Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_def.h')
-rw-r--r--drivers/scsi/qla4xxx/ql4_def.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_def.h b/drivers/scsi/qla4xxx/ql4_def.h
index b586f27c3bd4..963e8553d210 100644
--- a/drivers/scsi/qla4xxx/ql4_def.h
+++ b/drivers/scsi/qla4xxx/ql4_def.h
@@ -184,6 +184,11 @@ struct srb {
184 uint16_t cc_stat; 184 uint16_t cc_stat;
185 u_long r_start; /* Time we recieve a cmd from OS */ 185 u_long r_start; /* Time we recieve a cmd from OS */
186 u_long u_start; /* Time when we handed the cmd to F/W */ 186 u_long u_start; /* Time when we handed the cmd to F/W */
187
188 /* Used for extended sense / status continuation */
189 uint8_t *req_sense_ptr;
190 uint16_t req_sense_len;
191 uint16_t reserved2;
187}; 192};
188 193
189/* 194/*
@@ -436,6 +441,8 @@ struct scsi_qla_host {
436 /* Map ddb_list entry by FW ddb index */ 441 /* Map ddb_list entry by FW ddb index */
437 struct ddb_entry *fw_ddb_index_map[MAX_DDB_ENTRIES]; 442 struct ddb_entry *fw_ddb_index_map[MAX_DDB_ENTRIES];
438 443
444 /* Saved srb for status continuation entry processing */
445 struct srb *status_srb;
439}; 446};
440 447
441static inline int is_qla4010(struct scsi_qla_host *ha) 448static inline int is_qla4010(struct scsi_qla_host *ha)