WSL2-Linux-Kernel/drivers/scsi/mpt3sas
Ranjan Kumar d157b06c10 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:13 -04:00
..
mpi
Kconfig
Makefile
mpt3sas_base.c scsi: mpt3sas: Prevent sending diag_reset when the controller is ready 2024-03-26 18:21:13 -04:00
mpt3sas_base.h scsi: mpt3sas: Perform additional retries if doorbell read returns 0 2023-09-19 12:22:51 +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 17:26:47 +01:00
mpt3sas_transport.c scsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add() 2023-03-22 13:31:22 +01:00
mpt3sas_trigger_diag.c
mpt3sas_trigger_diag.h
mpt3sas_trigger_pages.h
mpt3sas_warpdrive.c