scsi: mpt3sas: Handle firmware faults during first half of IOC init
authorSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Tue, 18 May 2021 05:16:24 +0000 (10:46 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Jun 2021 02:48:20 +0000 (22:48 -0400)
commit19a622c39a9d497d3c06ffe9068ee4c7bbd2bdcc
tree0ec8c8c01c3e3fedb5b652eac9366f7da2914172
parente2fac6c44ae06e58ac02181b048af31195883c31
scsi: mpt3sas: Handle firmware faults during first half of IOC init

During first half of IOC initialization (i.e.  before going for device
scanning), if any firmware fault occurs then driver is aborting the IOC
initialization operation.

Modify the driver to issue a diag reset operation to recover IOC from fault
state and reinitialize the IOC.

Link: https://lore.kernel.org/r/20210518051625.1596742-3-suganath-prabu.subramani@broadcom.com
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c
drivers/scsi/mpt3sas/mpt3sas_base.h
drivers/scsi/mpt3sas/mpt3sas_config.c