All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: ufs: ufs-pci: default clock frequency for Intel's UFS controller
@ 2022-07-08  4:17 Daniil Lunev
  2022-07-13 13:29 ` Adrian Hunter
  0 siblings, 1 reply; 2+ messages in thread
From: Daniil Lunev @ 2022-07-08  4:17 UTC (permalink / raw)
  To: Adrian Hunter
  Cc: Daniil Lunev, Avri Altman, Bart Van Assche, Bean Huo,
	James E.J. Bottomley, Martin K. Petersen, linux-kernel,
	linux-scsi

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@chromium.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-13 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08  4:17 [PATCH] scsi: ufs: ufs-pci: default clock frequency for Intel's UFS controller Daniil Lunev
2022-07-13 13:29 ` Adrian Hunter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.