mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
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>
This commit is contained in:
parent
bacb96ce06
commit
878ed88c50
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user