Ranjan Kumar ba3a55d118 scsi: mpt3sas: Prevent sending diag_reset when the controller is ready
[ Upstream commit ee0017c3ed8a8abfa4d40e42f908fb38c31e7515 ]

If the driver detects that the controller is not ready before sending the
first IOC facts command, it will wait for a maximum of 10 seconds for it to
become ready. However, even if the controller becomes ready within 10
seconds, the driver will still issue a diagnostic reset.

Modify the driver to avoid sending a diag reset if the controller becomes
ready within the 10-second wait time.

Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://lore.kernel.org/r/20240221071724.14986-1-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:21:46 -04:00
..
2023-09-19 12:20:19 +02:00
2024-02-23 08:42:30 +01:00
2023-07-27 08:44:00 +02:00
2023-11-20 11:06:50 +01:00
2024-02-23 08:42:29 +01:00
2024-02-23 08:42:03 +01:00
2024-01-25 14:37:38 -08:00
2023-07-27 08:44:02 +02:00