]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
scsi: qla2xxx: shutdown chip if reset fail
authorQuinn Tran <quinn.tran@cavium.com>
Tue, 11 Sep 2018 17:18:21 +0000 (10:18 -0700)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:58:48 +0000 (19:58 -0600)
BugLink: https://bugs.launchpad.net/bugs/1836802
commit 1e4ac5d6fe0a4af17e4b6251b884485832bf75a3 upstream.

If chip unable to fully initialize, use full shutdown sequence to clear out
any stale FW state.

Fixes: e315cd28b9ef ("[SCSI] qla2xxx: Code changes for qla data structure refactoring")
Cc: stable@vger.kernel.org #4.10
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/scsi/qla2xxx/qla_init.c

index 87bb46ea4077ebeb1553e8338271d298e9eb1582..4cd8b62fc4319f77449ba83514c52c5e7ae89790 100644 (file)
@@ -6228,7 +6228,7 @@ qla2x00_abort_isp(scsi_qla_host_t *vha)
                                         * The next call disables the board
                                         * completely.
                                         */
-                                       ha->isp_ops->reset_adapter(vha);
+                                       qla2x00_abort_isp_cleanup(vha);
                                        vha->flags.online = 0;
                                        clear_bit(ISP_ABORT_RETRY,
                                            &vha->dpc_flags);