FROMGIT: scsi: ufs: ufs-mediatek: Disable HCI before HW reset
MediaTek ufshci needs to be disabled before HW reset to avoid potential issues. Bug: 191731858 Change-Id: Ie8c9789ef05105923ca2039d38da3b1a1db0932d (cherry picked from commit f9c602f3bd9c79c06ccd7621744472a64e93fd49 git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next) Link: https://lore.kernel.org/r/20210528033624.12170-3-alice.chao@mediatek.com Reviewed-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Alice.Chao <alice.chao@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
This commit is contained in:
@@ -853,6 +853,9 @@ 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);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user