[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250821101609.20235-1-quic_rdwivedi@quicinc.com>
Date: Thu, 21 Aug 2025 15:46:05 +0530
From: Ram Kumar Dwivedi <quic_rdwivedi@...cinc.com>
To: <mani@...nel.org>, <alim.akhtar@...sung.com>, <avri.altman@....com>,
<bvanassche@....org>, <robh@...nel.org>, <krzk+dt@...nel.org>,
<conor+dt@...nel.org>, <andersson@...nel.org>,
<konradybcio@...nel.org>, <agross@...nel.org>,
<James.Bottomley@...senPartnership.com>, <martin.petersen@...cle.com>
CC: <linux-arm-msm@...r.kernel.org>, <linux-scsi@...r.kernel.org>,
<devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH V2 0/4] Add DT-based gear and rate limiting support
This patch series adds support for limiting the maximum high-speed
gear and rate used by the UFS controller via device tree properties.
Some platforms may have signal integrity, clock configuration, or
layout issues that prevent reliable operation at higher gears or rates.
This is especially critical in automotive and other platforms where
stability is prioritized over peak performance.
The series follows this logical progression:
1. Document the new DT properties in the common UFS binding
2. Clean up existing redundant code in the qcom driver
3. Add platform-level parsing support for the new properties
4. Integrate the platform support in the qcom driver
This approach makes the functionality available to other UFS host
drivers and provides a cleaner, more maintainable implementation.
Changes from V1:
- Restructured patch series for better logical flow and maintainability.
- Moved DT bindings to ufs-common.yaml making it available for all UFS
controllers.
- Added platform-level support in ufshcd-pltfrm.c for code reusability.
- Separated the cleanup patch to remove redundant hs_rate assignment in
qcom driver.
- Removed SA8155 DTS changes to keep the series focused on core
functionality.
- Improved commit messages with better technical rationale.
Ram Kumar Dwivedi (4):
ufs: dt-bindings: Document gear and rate limit properties
ufs: ufs-qcom: Remove redundant re-assignment to hs_rate
ufs: pltfrm: Allow limiting HS gear and rate via DT
ufs: ufs-qcom: Add support for limiting HS gear and rate
.../devicetree/bindings/ufs/ufs-common.yaml | 16 ++++++++++
drivers/ufs/host/ufs-qcom.c | 21 ++++++++++----
drivers/ufs/host/ufshcd-pltfrm.c | 29 +++++++++++++++++++
drivers/ufs/host/ufshcd-pltfrm.h | 1 +
4 files changed, 61 insertions(+), 6 deletions(-)
--
2.50.1
Powered by blists - more mailing lists