android_kernel_samsung_sm8650/drivers/scsi/hisi_sas
Yihang Li d4560c11c3 scsi: hisi_sas: Set .phy_attached before notifing phyup event HISI_PHYE_PHY_UP_PM
[ Upstream commit ce26497c745d0541aec930d5211b431a1c26af97 ]

Currently in directly attached scenario, the phyup event
HISI_PHYE_PHY_UP_PM is notified before .phy_attached is set - this may
cause the phyup work hisi_sas_bytes_dmaed() execution failed and the
attached device will not be found.

To fix it, set .phy_attached before notifing phyup event.

Signed-off-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1702525516-51258-2-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-05 20:12:52 +00:00
..
hisi_sas_main.c scsi: hisi_sas: Replace with standard error code return value 2024-01-25 15:27:28 -08:00
hisi_sas_v1_hw.c scsi: hisi_sas: Handle NCQ error when IPTT is valid 2023-05-11 23:03:20 +09:00
hisi_sas_v2_hw.c scsi: hisi_sas: Fix normally completed I/O analysed as failed 2023-09-13 09:42:50 +02:00
hisi_sas_v3_hw.c scsi: hisi_sas: Set .phy_attached before notifing phyup event HISI_PHYE_PHY_UP_PM 2024-02-05 20:12:52 +00:00
hisi_sas.h scsi: hisi_sas: Add helper to process bcast events 2022-09-06 22:28:11 -04: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