scsi: ufs-qcom: Disable HCI before HW reset

Disable ufshci before HW reset to avoid potential issues.

Change-Id: I94f54bffa1224c5b621684b6ba05feead66574f9
Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
This commit is contained in:
Ziqi Chen
2021-12-29 13:52:59 +08:00
parent c068ebacc0
commit 74c417d7f1

View File

@@ -3763,6 +3763,9 @@ static int ufs_qcom_device_reset(struct ufs_hba *hba)
if (!host->device_reset)
return -EOPNOTSUPP;
/* disable hba before device reset */
ufshcd_hba_stop(hba);
/*
* The UFS device shall detect reset pulses of 1us, sleep for 10us to
* be on the safe side.