OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a95f5b
)
scsi: ufs: ufs-mediatek: Disable HCI before HW reset
author
Alice.Chao
<alice.chao@mediatek.com>
Fri, 28 May 2021 03:36:22 +0000
(11:36 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 2 Jun 2021 04:56:14 +0000
(
00:56
-0400)
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>
drivers/scsi/ufs/ufs-mediatek.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ufs/ufs-mediatek.c
b/drivers/scsi/ufs/ufs-mediatek.c
index
9912e20
..
bbe0596
100644
(file)
--- a/
drivers/scsi/ufs/ufs-mediatek.c
+++ b/
drivers/scsi/ufs/ufs-mediatek.c
@@
-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);
/*