linux-stable/drivers/scsi/mpt3sas
Ranjan Kumar b0e50fa810 scsi: mpt3sas: Prevent sending diag_reset when the controller is ready
[ Upstream commit ee0017c3ed ]

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:20:26 -04:00
..
mpi
Kconfig
Makefile
mpt3sas_base.c scsi: mpt3sas: Prevent sending diag_reset when the controller is ready 2024-03-26 18:20:26 -04:00
mpt3sas_base.h scsi: mpt3sas: Perform additional retries if doorbell read returns 0 2023-09-13 09:43:01 +02:00
mpt3sas_config.c
mpt3sas_ctl.c
mpt3sas_ctl.h
mpt3sas_debug.h
mpt3sas_debugfs.c
mpt3sas_scsih.c scsi: mpt3sas: Fix in error path 2023-11-08 14:11:00 +01:00
mpt3sas_transport.c scsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add() 2023-03-22 13:33:41 +01:00
mpt3sas_trigger_diag.c
mpt3sas_trigger_diag.h
mpt3sas_trigger_pages.h
mpt3sas_warpdrive.c