Commit cbb73f81 authored by Quinn Tran's avatar Quinn Tran Committed by Kleber Sacilotto de Souza

scsi: qla2xxx: Fix ISP recovery on unload

BugLink: https://bugs.launchpad.net/bugs/1792109

commit b08abbd9 upstream.

During unload process, the chip can encounter problem where a FW dump would
be captured. For this case, the full reset sequence will be skip to bring
the chip back to full operational state.

Fixes: e315cd28 ("[SCSI] qla2xxx: Code changes for qla data structure refactoring")
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarQuinn Tran <quinn.tran@cavium.com>
Signed-off-by: default avatarHimanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent e2bed5f6
...@@ -5097,8 +5097,9 @@ qla2x00_do_dpc(void *data) ...@@ -5097,8 +5097,9 @@ qla2x00_do_dpc(void *data)
} }
} }
if (test_and_clear_bit(ISP_ABORT_NEEDED, if (test_and_clear_bit
&base_vha->dpc_flags)) { (ISP_ABORT_NEEDED, &base_vha->dpc_flags) &&
!test_bit(UNLOADING, &base_vha->dpc_flags)) {
ql_dbg(ql_dbg_dpc, base_vha, 0x4007, ql_dbg(ql_dbg_dpc, base_vha, 0x4007,
"ISP abort scheduled.\n"); "ISP abort scheduled.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment