Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ufs-qcom: Add specified gear support for multi gear scaling
@ 2026-12-02  8:14 Giri Prasad Goriparthi
  2026-12-02  8:14 ` [PATCH v2 1/3] scsi: ufs: " Giri Prasad Goriparthi
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Giri Prasad Goriparthi @ 2026-12-02  8:14 UTC (permalink / raw)
  To: Manivannan Sadhasivam, James E.J. Bottomley, Martin K. Petersen,
	Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Nitin Rawat, linux-arm-msm, linux-scsi, linux-kernel, devicetree,
	Giri Prasad Goriparthi, Ziqi Chen, Manivannan Sadhasivam

This patch series adds support for configuring UFS gear speeds on a
per-OPP frequency basis for Qualcomm UFS host controllers, enabling
more flexible multi-gear scaling.

On certain Qualcomm platforms, the UFS clock frequency and gear speed
do not have a strict one-to-one mapping. To handle this, the first patch
introduces a device tree based configuration mechanism using the
"opp-level" property within the OPP table. This allows each supported
operating frequency to be explicitly associated with a specific HS gear
speed. When this property is absent, the driver gracefully falls back to
the existing default frequency-to-gear lookup table.

The second patch applies this configuration to the Hamoa platform,
assigning the appropriate HS gear levels (G1, G3, G5) to the
corresponding OPP frequency entries in the device tree.

The third patch applies this configuration to the Talos platform,
assigning the appropriate HS gear levels (G1, G1, G3) to the
corresponding OPP frequency entries in the device tree.

Changes in V2:
- Retained Reviewed-by tag from Mani on hamoa.dtsi
- Drop __func__ from dev_err() [Mani]
- Fix variable declaration order to preserve Xmas order [Mani]
- Fix opp-level validation to check OPP_LEVEL_UNSET 
  explicitly [sashiko-bot]
- Add Talos DT opp-level entries

Signed-off-by: Giri Prasad Goriparthi <giri.goriparthi@oss.qualcomm.com>
---
Giri Prasad Goriparthi (3):
      scsi: ufs: ufs-qcom: Add specified gear support for multi gear scaling
      arm64: dts: qcom: hamoa: Add opp-level for UFS gear speed
      arm64: dts: qcom: talos: Add opp-level for UFS gear speed

 arch/arm64/boot/dts/qcom/hamoa.dtsi |  3 +++
 arch/arm64/boot/dts/qcom/talos.dtsi |  3 +++
 drivers/ufs/host/ufs-qcom.c         | 24 ++++++++++++++++++++++--
 3 files changed, 28 insertions(+), 2 deletions(-)
---
base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
change-id: 20261201-b4-ufs-qcom-multi-gear-scaling-30e082d0aeb6

Best regards,
--  
Giri Prasad Goriparthi <giri.goriparthi@oss.qualcomm.com>


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

end of thread, other threads:[~2026-12-02  8:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  8:14 [PATCH v2 0/3] ufs-qcom: Add specified gear support for multi gear scaling Giri Prasad Goriparthi
2026-12-02  8:14 ` [PATCH v2 1/3] scsi: ufs: " Giri Prasad Goriparthi
2026-12-02  8:32   ` sashiko-bot
2026-12-02  8:14 ` [PATCH v2 2/3] arm64: dts: qcom: hamoa: Add opp-level for UFS gear speed Giri Prasad Goriparthi
2026-12-02  8:28   ` sashiko-bot
2026-12-02  8:15 ` [PATCH v2 3/3] arm64: dts: qcom: talos: " Giri Prasad Goriparthi
2026-12-02  8:30   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox