scsi: mpi3mr: Handle soft reset in progress fault code (0xF002)
authorRanjan Kumar <ranjan.kumar@broadcom.com>
Fri, 31 Mar 2023 12:23:17 +0000 (17:53 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Apr 2023 01:22:28 +0000 (21:22 -0400)
commita3d27dfdcfc27ac3f46de5391bb6d24f04af7941
tree072e0991f9ec5b0161098f5062660ecc75be4982
parent86eb94bf8006a85738f0ccf49e3ce894e03922a6
scsi: mpi3mr: Handle soft reset in progress fault code (0xF002)

The driver is exiting from the fault watchdog thread if it sees the 0xF002
(Soft reset in progress) fault code.

If the driver initiates the soft reset, then the driver restarts the
watchdog at the end of the soft reset completion.  However, if the soft
reset is initiated by the firmware asynchronously, then the driver will
never restart the watchdog and never re-initialize the controller after the
asynchronous soft reset completion.

Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://lore.kernel.org/r/20230331122317.11391-1-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_fw.c