summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_def.h
diff options
context:
space:
mode:
authorShyam Sunder <shyam.sunder@qlogic.com>2011-12-01 22:42:13 -0800
committerJames Bottomley <JBottomley@Parallels.com>2011-12-15 10:57:42 +0400
commit9ee91a38b1e224b0ee4ddc9a69d41f732d776310 (patch)
tree2a86b0ddd75c76090a7a448794cc0a7ac9e5f194 /drivers/scsi/qla4xxx/ql4_def.h
parent0a24361566d750065849f63521097f8373a0ac6b (diff)
downloadlinux-9ee91a38b1e224b0ee4ddc9a69d41f732d776310.tar.gz
linux-9ee91a38b1e224b0ee4ddc9a69d41f732d776310.tar.bz2
linux-9ee91a38b1e224b0ee4ddc9a69d41f732d776310.zip
[SCSI] qla4xxx: check for FW alive before calling chip_reset
Check for firmware alive and do premature completion of mbox commands in case of FW hung before doing chip_reset Signed-off-by: Shyam Sunder <shyam.sunder@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: Nilesh Javali <nilesh.javali@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_def.h')
-rw-r--r--drivers/scsi/qla4xxx/ql4_def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_def.h b/drivers/scsi/qla4xxx/ql4_def.h
index fd5edc6e166d..22a3ff02e48a 100644
--- a/drivers/scsi/qla4xxx/ql4_def.h
+++ b/drivers/scsi/qla4xxx/ql4_def.h
@@ -177,6 +177,7 @@
#define LOGIN_TOV 12
#define MAX_RESET_HA_RETRIES 2
+#define FW_ALIVE_WAIT_TOV 3
#define CMD_SP(Cmnd) ((Cmnd)->SCp.ptr)