* [PATCH] scsi: ufs: qcom: stop ignoring hibern8 exit failures
@ 2026-03-29 18:35 Josh Law
2026-03-30 7:46 ` Krzysztof Kozlowski
0 siblings, 1 reply; 2+ messages in thread
From: Josh Law @ 2026-03-29 18:35 UTC (permalink / raw)
To: Manivannan Sadhasivam, James E . J . Bottomley,
Martin K . Petersen
Cc: linux-arm-msm, linux-scsi, linux-kernel, Josh Law
Right now, we're blindly returning success even if waking the link fails during clock scaling. This is a mess because the core then tries to send SCSI commands to a dead link, causing huge timeouts.
Just return the actual error so the core can catch the failure and roll back properly.
Signed-off-by: Josh Law <objecting@objecting.org>
---
drivers/ufs/host/ufs-qcom.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
index 375fd24ba458..5d33a921a22f 100644
--- a/drivers/ufs/host/ufs-qcom.c
+++ b/drivers/ufs/host/ufs-qcom.c
@@ -1750,10 +1750,10 @@ static int ufs_qcom_clk_scale_notify(struct ufs_hba *hba, bool scale_up,
}
ufs_qcom_icc_update_bw(host);
- ufshcd_uic_hibern8_exit(hba);
+ err = ufshcd_uic_hibern8_exit(hba);
}
- return 0;
+ return err;
}
static void ufs_qcom_enable_test_bus(struct ufs_qcom_host *host)
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] scsi: ufs: qcom: stop ignoring hibern8 exit failures
2026-03-29 18:35 [PATCH] scsi: ufs: qcom: stop ignoring hibern8 exit failures Josh Law
@ 2026-03-30 7:46 ` Krzysztof Kozlowski
0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-30 7:46 UTC (permalink / raw)
To: Josh Law, Manivannan Sadhasivam, James E . J . Bottomley,
Martin K . Petersen
Cc: linux-arm-msm, linux-scsi, linux-kernel
On 29/03/2026 20:35, Josh Law wrote:
> Right now, we're blindly returning success even if waking the link fails during clock scaling. This is a mess because the core then tries to send SCSI commands to a dead link, causing huge timeouts.
>
> Just return the actual error so the core can catch the failure and roll back properly.
NAK, you were asked way too many times for the same and you just ignore
people's feedback.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-30 7:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-29 18:35 [PATCH] scsi: ufs: qcom: stop ignoring hibern8 exit failures Josh Law
2026-03-30 7:46 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox