linux-stable/drivers/scsi/hisi_sas
Yihang Li f58c897006 scsi: hisi_sas: Set a port invalid only if there are no devices attached when refreshing port id
Currently the driver sets the port invalid if one phy in the port is not
enabled, which may cause issues in expander situation. In directly attached
situation, if phy up doesn't occur in time when refreshing port id, the
port is incorrectly set to invalid which will also cause disk lost.

Therefore set a port invalid only if there are no devices attached to the
port.

Signed-off-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1672805000-141102-3-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-01-12 00:08:03 -05:00
..
hisi_sas.h scsi: hisi_sas: Add SATA_DISK_ERR bit handling for v3 hw 2022-10-18 02:37:45 +00:00
hisi_sas_main.c scsi: hisi_sas: Set a port invalid only if there are no devices attached when refreshing port id 2023-01-12 00:08:03 -05:00
hisi_sas_v1_hw.c scsi: hisi_sas: Add helper to process bcast events 2022-09-06 22:28:11 -04:00
hisi_sas_v2_hw.c SCSI misc on 20221007 2022-10-07 12:33:18 -07:00
hisi_sas_v3_hw.c scsi: hisi_sas: Modify v3 HW SATA disk error state completion processing 2022-10-18 02:37:45 +00:00
Kconfig scsi: hisi_sas: Enable debugfs support by default 2021-01-26 23:02:11 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00