Skip to content

Commit

Permalink
scsi: ufs: ufs-mediatek: Disable HCI before HW reset
Browse files Browse the repository at this point in the history
MediaTek ufshci needs to be disabled before HW reset to avoid potential
issues.

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>
  • Loading branch information
Alice.Chao authored and Martin K. Petersen committed Jun 2, 2021
1 parent 3a95f5b commit f9c602f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/scsi/ufs/ufs-mediatek.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,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);

/*
Expand Down

0 comments on commit f9c602f

Please sign in to comment.