]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: mpi3mr: Clear reset history on ready and recheck state after timeout
authorRanjan Kumar <ranjan.kumar@broadcom.com>
Wed, 25 Feb 2026 08:26:22 +0000 (13:56 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 28 Feb 2026 22:40:25 +0000 (17:40 -0500)
commitdbd53975ed4132d161b6a97ebe785a262380182d
treea5a9d78b0d24beec35789c6cc4f95d296e553d29
parent1ac22c8eae81366101597d48360718dff9b9d980
scsi: mpi3mr: Clear reset history on ready and recheck state after timeout

The driver retains reset history even after the IOC has successfully
reached the READY state. That leaves stale reset information active during
normal operation and can mislead recovery and diagnostics.  In addition, if
the IOC becomes READY just as the ready timeout loop exits, the driver
still follows the failure path and may retry or report failure incorrectly.

Clear reset history once READY is confirmed so driver state matches actual
IOC status. After the timeout loop, recheck the IOC state and treat READY
as success instead of failing.

Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://patch.msgid.link/20260225082622.82588-1-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_fw.c