]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
scsi: ufs-mediatek: Enable UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL
authorStanley Chu <stanley.chu@mediatek.com>
Tue, 22 Dec 2020 07:29:28 +0000 (15:29 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Jan 2021 03:03:04 +0000 (22:03 -0500)
Flush during hibern8 is sufficient on MediaTek platforms, thus enable
UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL to skip enabling
fWriteBoosterBufferFlush during WriteBooster initialization.

Link: https://lore.kernel.org/r/20201222072928.32328-1-stanley.chu@mediatek.com
Reviewed-by: Avri Altman <avri.altman@wdc.com>
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 80618af7c87203b256ce26087579fd582038847e..c55202b92a43a1b307862192e46ce11eb3258b9d 100644 (file)
@@ -661,6 +661,7 @@ static int ufs_mtk_init(struct ufs_hba *hba)
 
        /* Enable WriteBooster */
        hba->caps |= UFSHCD_CAP_WB_EN;
+       hba->quirks |= UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL;
        hba->vps->wb_flush_threshold = UFS_WB_BUF_REMAIN_PERCENT(80);
 
        if (host->caps & UFS_MTK_CAP_DISABLE_AH8)