Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286365
b: refs/heads/master
c: 527c8b2
h: refs/heads/master
i:
  286363: 80efdaf
v: v3
  • Loading branch information
Nilesh Javali authored and James Bottomley committed Jan 16, 2012
1 parent 73625ed commit d1a55d0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6bd0ebd4a8ba9118e970c0214e912e35895c92b
refs/heads/master: 527c8b2e962d21baa38a96b22e1bf50a47fdf4fb
2 changes: 2 additions & 0 deletions trunk/drivers/scsi/qla4xxx/ql4_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@
#define QL4_SESS_RECOVERY_TMO 120 /* iSCSI session */
/* recovery timeout */

#define MSB(x) ((uint8_t)((uint16_t)(x) >> 8))
#define LSW(x) ((uint16_t)(x))
#define LSDW(x) ((u32)((u64)(x)))
#define MSDW(x) ((u32)((((u64)(x)) >> 16) >> 16))

Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -2112,6 +2112,13 @@ void qla4_8xxx_watchdog(struct scsi_qla_host *ha)
halt_status = qla4_8xxx_rd_32(ha,
QLA82XX_PEG_HALT_STATUS1);

if (LSW(MSB(halt_status)) == 0x67)
ql4_printk(KERN_ERR, ha, "%s:"
" Firmware aborted with"
" error code 0x00006700."
" Device is being reset\n",
__func__);

/* Since we cannot change dev_state in interrupt
* context, set appropriate DPC flag then wakeup
* DPC */
Expand Down

0 comments on commit d1a55d0

Please sign in to comment.