android_kernel_xiaomi_sm8450/drivers/scsi/hisi_sas
Yihang Li 52249c2168 scsi: hisi_sas: Set a port invalid only if there are no devices attached when refreshing port id
[ Upstream commit f58c89700630da6554b24fd3df293a24874c10c1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:23:17 +01:00
..
hisi_sas_main.c scsi: hisi_sas: Set a port invalid only if there are no devices attached when refreshing port id 2023-02-01 08:23:17 +01:00
hisi_sas_v1_hw.c scsi: libsas: Add LUN number check in .slave_alloc callback 2021-07-25 14:36:16 +02:00
hisi_sas_v2_hw.c scsi: libsas: Add LUN number check in .slave_alloc callback 2021-07-25 14:36:16 +02:00
hisi_sas_v3_hw.c scsi: hisi_sas: Revert "scsi: hisi_sas: Limit max hw sectors for v3 HW" 2022-10-05 10:38:40 +02:00
hisi_sas.h SCSI misc on 20201013 2020-10-14 15:15:35 -07:00
Kconfig scsi: hisi_sas: Add check for methods _PS0 and _PR0 2020-10-06 20:47:06 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00