Skip to content

Commit 878ed88

Browse files
ptr324martinkpetersen
authored andcommitted
scsi: ufs: host: mediatek: Change reset sequence for improved stability
Modify 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@mediatek.com> Link: https://lore.kernel.org/r/20250811131423.3444014-10-peter.wang@mediatek.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent bacb96c commit 878ed88

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/ufs/host/ufs-mediatek.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,11 +1543,11 @@ static int ufs_mtk_device_reset(struct ufs_hba *hba)
15431543
{
15441544
struct arm_smccc_res res;
15451545

1546-
/* disable hba before device reset */
1547-
ufshcd_hba_stop(hba);
1548-
15491546
ufs_mtk_device_reset_ctrl(0, res);
15501547

1548+
/* disable hba in middle of device reset */
1549+
ufshcd_hba_stop(hba);
1550+
15511551
/*
15521552
* The reset signal is active low. UFS devices shall detect
15531553
* more than or equal to 1us of positive or negative RST_n

0 commit comments

Comments
 (0)