Commit 29060a62 authored by Stanley Chu's avatar Stanley Chu Committed by Martin K. Petersen

scsi: ufs-mediatek: Enable WriteBooster capability

Enable WriteBooster capability on MediaTek UFS platforms.

Link: https://lore.kernel.org/r/20200508080115.24233-8-stanley.chu@mediatek.comReviewed-by: default avatarBean Huo <beanhuo@micron.com>
Reviewed-by: default avatarAvri Altman <avri.altman@wdc.com>
Reviewed-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
Signed-off-by: default avatarStanley Chu <stanley.chu@mediatek.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 6f8d5a6a
...@@ -269,6 +269,9 @@ static int ufs_mtk_init(struct ufs_hba *hba) ...@@ -269,6 +269,9 @@ static int ufs_mtk_init(struct ufs_hba *hba)
/* Enable clock-gating */ /* Enable clock-gating */
hba->caps |= UFSHCD_CAP_CLK_GATING; hba->caps |= UFSHCD_CAP_CLK_GATING;
/* Enable WriteBooster */
hba->caps |= UFSHCD_CAP_WB_EN;
/* /*
* ufshcd_vops_init() is invoked after * ufshcd_vops_init() is invoked after
* ufshcd_setup_clock(true) in ufshcd_hba_init() thus * ufshcd_setup_clock(true) in ufshcd_hba_init() thus
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment