aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_nx.c
diff options
context:
space:
mode:
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>2013-12-16 06:49:34 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 13:19:12 -0400
commit80645dc0ffb7361726374bcc7bfc29337e8a385d (patch)
tree82e03d717e15d8289f6fee26cbb02f16c414639b /drivers/scsi/qla4xxx/ql4_nx.c
parentc4e3c368675befdbc189e0de5776eb32e8b7b98e (diff)
[SCSI] qla4xxx: Use IDC_CTRL bit1 directly instead of AF_83XX_NO_FWDUMP flag.
Removed AF_83XX_NO_FWDUMP flag and directly checking IDC_CTRL bit1 while taking minidump, to check for graceful reset. Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_nx.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_nx.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.c
index bbe836146837..0ec07ecd5fa2 100644
--- a/drivers/scsi/qla4xxx/ql4_nx.c
+++ b/drivers/scsi/qla4xxx/ql4_nx.c
@@ -2821,7 +2821,7 @@ int qla4_8xxx_device_bootstrap(struct scsi_qla_host *ha)
2821{ 2821{
2822 int rval = QLA_ERROR; 2822 int rval = QLA_ERROR;
2823 int i, timeout; 2823 int i, timeout;
2824 uint32_t old_count, count, idc_ctrl; 2824 uint32_t old_count, count;
2825 int need_reset = 0, peg_stuck = 1; 2825 int need_reset = 0, peg_stuck = 1;
2826 2826
2827 need_reset = ha->isp_ops->need_reset(ha); 2827 need_reset = ha->isp_ops->need_reset(ha);
@@ -2864,19 +2864,6 @@ dev_initialize:
2864 qla4_8xxx_wr_direct(ha, QLA8XXX_CRB_DEV_STATE, 2864 qla4_8xxx_wr_direct(ha, QLA8XXX_CRB_DEV_STATE,
2865 QLA8XXX_DEV_INITIALIZING); 2865 QLA8XXX_DEV_INITIALIZING);
2866 2866
2867 /*
2868 * For ISP8324 and ISP8042, if IDC_CTRL GRACEFUL_RESET_BIT1 is set,
2869 * reset it after device goes to INIT state.
2870 */
2871 if (is_qla8032(ha) || is_qla8042(ha)) {
2872 idc_ctrl = qla4_83xx_rd_reg(ha, QLA83XX_IDC_DRV_CTRL);
2873 if (idc_ctrl & GRACEFUL_RESET_BIT1) {
2874 qla4_83xx_wr_reg(ha, QLA83XX_IDC_DRV_CTRL,
2875 (idc_ctrl & ~GRACEFUL_RESET_BIT1));
2876 set_bit(AF_83XX_NO_FW_DUMP, &ha->flags);
2877 }
2878 }
2879
2880 ha->isp_ops->idc_unlock(ha); 2867 ha->isp_ops->idc_unlock(ha);
2881 2868
2882 if (is_qla8022(ha)) 2869 if (is_qla8022(ha))