[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220708141612.1.Ice2e8173bd0937c7c4898b112350120063572269@changeid>
Date: Fri, 8 Jul 2022 14:17:07 +1000
From: Daniil Lunev <dlunev@...omium.org>
To: Adrian Hunter <adrian.hunter@...el.com>
Cc: Daniil Lunev <dlunev@...omium.org>,
Avri Altman <avri.altman@....com>,
Bart Van Assche <bvanassche@....org>,
Bean Huo <beanhuo@...ron.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org
Subject: [PATCH] scsi: ufs: ufs-pci: default clock frequency for Intel's UFS controller
ARM platforms rely on 'ref_clk' of a UFS controller's node in DTS to set
up the proper bRefClkFreq for the UFS storage device. The facility is
not available on x86. To circumvene that, default the parameter,
responsible for carrying the value to the UFS storage device
initialization, to the one that Intel's controllers support. This is
required to support provisioning of UFS storage devices from userspace,
without relying on FW and/or bootloader to make the necessary
preparations.
Signed-off-by: Daniil Lunev <dlunev@...omium.org>
---
drivers/ufs/host/ufshcd-pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ufs/host/ufshcd-pci.c b/drivers/ufs/host/ufshcd-pci.c
index 04166bda41daa..a6f9222cbea74 100644
--- a/drivers/ufs/host/ufshcd-pci.c
+++ b/drivers/ufs/host/ufshcd-pci.c
@@ -336,6 +336,7 @@ static int ufs_intel_common_init(struct ufs_hba *hba)
struct intel_host *host;
hba->caps |= UFSHCD_CAP_RPM_AUTOSUSPEND;
+ hba->dev_ref_clk_freq = REF_CLK_FREQ_19_2_MHZ;
host = devm_kzalloc(hba->dev, sizeof(*host), GFP_KERNEL);
if (!host)
--
2.31.0
Powered by blists - more mailing lists