scsi: ufs-mediatek: Enable WriteBooster capability
authorStanley Chu <stanley.chu@mediatek.com>
Fri, 8 May 2020 08:01:14 +0000 (16:01 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 12 May 2020 02:48:46 +0000 (22:48 -0400)
Enable WriteBooster capability on MediaTek UFS platforms.

Link: https://lore.kernel.org/r/20200508080115.24233-8-stanley.chu@mediatek.com
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-mediatek.c

index 1898f1269ac59b8d364ba974bac8b9d68c65119b..c543142554d3aa6aaac562f3bf5695f90786e8e7 100644 (file)
@@ -269,6 +269,9 @@ static int ufs_mtk_init(struct ufs_hba *hba)
        /* Enable clock-gating */
        hba->caps |= UFSHCD_CAP_CLK_GATING;
 
+       /* Enable WriteBooster */
+       hba->caps |= UFSHCD_CAP_WB_EN;
+
        /*
         * ufshcd_vops_init() is invoked after
         * ufshcd_setup_clock(true) in ufshcd_hba_init() thus