]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: ufs: ufs-pci: Enable WriteBooster capability on ADL
authorDaniil Lunev <dlunev@chromium.org>
Tue, 5 Jul 2022 06:53:26 +0000 (16:53 +1000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jul 2022 21:24:50 +0000 (17:24 -0400)
Sets the WriteBooster capability flag when ADL's UFS controller is used.

Link: https://lore.kernel.org/r/20220705165316.v2.1.Ib5ebec952d9a59f5c69c89b694777f517d22466d@changeid
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Daniil Lunev <dlunev@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufshcd-pci.c

index 04166bda41daacb25c8c18cfe2c76507dd91efa5..24af1f389bf2fd7b52e5fb5fc2db961bad85bf34 100644 (file)
@@ -426,6 +426,7 @@ static int ufs_intel_adl_init(struct ufs_hba *hba)
 {
        hba->nop_out_timeout = 200;
        hba->quirks |= UFSHCD_QUIRK_BROKEN_AUTO_HIBERN8;
+       hba->caps |= UFSHCD_CAP_WB_EN;
        return ufs_intel_common_init(hba);
 }