diff mbox series

[v2] scsi: ufs: ufs-pci: Enable WriteBooster capability on ADL

Message ID 20220705165316.v2.1.Ib5ebec952d9a59f5c69c89b694777f517d22466d@changeid (mailing list archive)
State Accepted
Headers show
Series [v2] scsi: ufs: ufs-pci: Enable WriteBooster capability on ADL | expand

Commit Message

Daniil Lunev July 5, 2022, 6:53 a.m. UTC
Sets the WriteBooster capability flag when ADL's UFS controller is used.

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

---

Changes in v2:
- Fixed typo in commit message

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

Comments

Adrian Hunter July 6, 2022, 6:11 p.m. UTC | #1
On 5/07/22 09:53, Daniil Lunev wrote:
> Sets the WriteBooster capability flag when ADL's UFS controller is used.
> 
> Signed-off-by: Daniil Lunev <dlunev@chromium.org>

Acked-by: Adrian Hunter <adrian.hunter@intel.com>

> 
> ---
> 
> Changes in v2:
> - Fixed typo in commit message
> 
>  drivers/scsi/ufs/ufshcd-pci.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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);
>  }
>
Martin K. Petersen July 7, 2022, 9:26 p.m. UTC | #2
Daniil,

> Sets the WriteBooster capability flag when ADL's UFS controller is
> used.

Applied to 5.20/scsi-staging, thanks!
Martin K. Petersen July 14, 2022, 4:22 a.m. UTC | #3
On Tue, 5 Jul 2022 16:53:26 +1000, Daniil Lunev wrote:

> Sets the WriteBooster capability flag when ADL's UFS controller is used.
> 
> 

Applied to 5.20/scsi-queue, thanks!

[1/1] scsi: ufs: ufs-pci: Enable WriteBooster capability on ADL
      https://git.kernel.org/mkp/scsi/c/1466b3bc456a
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);
 }