[PATCH v1 09/10] ufs: host: mediatek: Change reset sequence for improved stability
peter.wang at mediatek.com
peter.wang at mediatek.com
Mon Aug 11 06:11:25 PDT 2025
From: Peter Wang <peter.wang at mediatek.com>
This patch modifies the reset sequence to ensure that the device
reset pin is set low before the host is disabled. This change
enhances the stability of the reset process by ensuring the
correct order of operations.
Signed-off-by: Peter Wang <peter.wang at mediatek.com>
---
drivers/ufs/host/ufs-mediatek.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c
index 6db75683bbe8..ae458c4a7a46 100644
--- a/drivers/ufs/host/ufs-mediatek.c
+++ b/drivers/ufs/host/ufs-mediatek.c
@@ -1543,11 +1543,11 @@ static int ufs_mtk_device_reset(struct ufs_hba *hba)
{
struct arm_smccc_res res;
- /* disable hba before device reset */
- ufshcd_hba_stop(hba);
-
ufs_mtk_device_reset_ctrl(0, res);
+ /* disable hba in middle of device reset */
+ ufshcd_hba_stop(hba);
+
/*
* The reset signal is active low. UFS devices shall detect
* more than or equal to 1us of positive or negative RST_n
--
2.45.2
More information about the Linux-mediatek
mailing list