aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/qla4xxx/ql4_def.h2
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_def.h b/drivers/scsi/qla4xxx/ql4_def.h
index ec48dc30b9a2..bfe68545203f 100644
--- a/drivers/scsi/qla4xxx/ql4_def.h
+++ b/drivers/scsi/qla4xxx/ql4_def.h
@@ -150,6 +150,8 @@
150#define QL4_SESS_RECOVERY_TMO 120 /* iSCSI session */ 150#define QL4_SESS_RECOVERY_TMO 120 /* iSCSI session */
151 /* recovery timeout */ 151 /* recovery timeout */
152 152
153#define MSB(x) ((uint8_t)((uint16_t)(x) >> 8))
154#define LSW(x) ((uint16_t)(x))
153#define LSDW(x) ((u32)((u64)(x))) 155#define LSDW(x) ((u32)((u64)(x)))
154#define MSDW(x) ((u32)((((u64)(x)) >> 16) >> 16)) 156#define MSDW(x) ((u32)((((u64)(x)) >> 16) >> 16))
155 157
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index e2ef7762dc24..b75590af8ed3 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -2112,6 +2112,13 @@ void qla4_8xxx_watchdog(struct scsi_qla_host *ha)
2112 halt_status = qla4_8xxx_rd_32(ha, 2112 halt_status = qla4_8xxx_rd_32(ha,
2113 QLA82XX_PEG_HALT_STATUS1); 2113 QLA82XX_PEG_HALT_STATUS1);
2114 2114
2115 if (LSW(MSB(halt_status)) == 0x67)
2116 ql4_printk(KERN_ERR, ha, "%s:"
2117 " Firmware aborted with"
2118 " error code 0x00006700."
2119 " Device is being reset\n",
2120 __func__);
2121
2115 /* Since we cannot change dev_state in interrupt 2122 /* Since we cannot change dev_state in interrupt
2116 * context, set appropriate DPC flag then wakeup 2123 * context, set appropriate DPC flag then wakeup
2117 * DPC */ 2124 * DPC */