diff mbox series

scsi: ufs: ufs-pci: Enable WriteBooster capability on ADL

Message ID 20220704092721.1.Ib5ebec952d9a59f5c69c89b694777f517d22466d@changeid
State Superseded
Headers show
Series scsi: ufs: ufs-pci: Enable WriteBooster capability on ADL | expand

Commit Message

Daniil Lunev July 3, 2022, 11:28 p.m. UTC
Sets the WrtieBooster capability flag when ADL's UFS controller is used.

Signed-off-by: Daniil Lunev <dlunev@chromium.org>

---

 drivers/scsi/ufs/ufshcd-pci.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Bart Van Assche July 4, 2022, 3 a.m. UTC | #1
On 7/3/22 16:28, Daniil Lunev wrote:
> Sets the WrtieBooster capability flag when ADL's UFS controller is used.
            ^^^^^^^^^^^^
WriteBooster?

Otherwise this patch looks fine to me.

Thanks,

Bart.
Daniil Lunev July 5, 2022, 6:53 a.m. UTC | #2
Thanks Bart.
Sent v2 patch with the commit message fixed.
--Daniil

On Mon, Jul 4, 2022 at 1:00 PM Bart Van Assche <bvanassche@acm.org> wrote:
>
> On 7/3/22 16:28, Daniil Lunev wrote:
> > Sets the WrtieBooster capability flag when ADL's UFS controller is used.
>             ^^^^^^^^^^^^
> WriteBooster?
>
> Otherwise this patch looks fine to me.
>
> Thanks,
>
> Bart.
diff mbox series

Patch

diff --git a/drivers/scsi/ufs/ufshcd-pci.c b/drivers/scsi/ufs/ufshcd-pci.c
index e892b9feffb11..fb7285a756969 100644
--- a/drivers/scsi/ufs/ufshcd-pci.c
+++ b/drivers/scsi/ufs/ufshcd-pci.c
@@ -425,6 +425,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);
 }