From: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
To: <alim.akhtar@samsung.com>, <avri.altman@wdc.com>,
<bvanassche@acm.org>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>, <mani@kernel.org>,
<James.Bottomley@HansenPartnership.com>,
<martin.petersen@oracle.com>
Cc: <linux-scsi@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>
Subject: [PATCH V3 0/4] Add DT-based gear and rate limiting support
Date: Tue, 26 Aug 2025 20:38:51 +0530 [thread overview]
Message-ID: <20250826150855.7725-1-quic_rdwivedi@quicinc.com> (raw)
From: Ram Kumar Dwivedi <rdwivedi@qti.qualcomm.com>
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.
Changes from V2:
- Documented default values of limit-rate and limit-hs-gear in DT bindings
as per Krzysztof's suggestion.
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 | 18 ++++++++++++
drivers/ufs/host/ufs-qcom.c | 21 ++++++++++----
drivers/ufs/host/ufshcd-pltfrm.c | 29 +++++++++++++++++++
drivers/ufs/host/ufshcd-pltfrm.h | 1 +
4 files changed, 63 insertions(+), 6 deletions(-)
--
2.50.1
next reply other threads:[~2025-08-26 15:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-26 15:08 Ram Kumar Dwivedi [this message]
2025-08-26 15:08 ` [PATCH V3 1/4] ufs: dt-bindings: Document gear and rate limit properties Ram Kumar Dwivedi
2025-08-26 15:35 ` Bart Van Assche
2025-08-28 16:25 ` Ram Kumar Dwivedi
2025-08-28 17:41 ` Krzysztof Kozlowski
2025-08-28 16:45 ` Ram Kumar Dwivedi
2025-08-28 17:22 ` Bart Van Assche
2025-09-01 4:07 ` Manivannan Sadhasivam
2025-09-01 16:01 ` Ram Kumar Dwivedi
2025-08-28 17:41 ` Krzysztof Kozlowski
2025-08-28 17:40 ` Krzysztof Kozlowski
2025-08-28 18:27 ` Bart Van Assche
2025-08-26 15:08 ` [PATCH V3 2/4] ufs: ufs-qcom: Remove redundant re-assignment to hs_rate Ram Kumar Dwivedi
2025-08-26 15:08 ` [PATCH V3 3/4] ufs: pltfrm: Allow limiting HS gear and rate via DT Ram Kumar Dwivedi
2025-08-26 15:08 ` [PATCH V3 4/4] ufs: ufs-qcom: Add support for limiting HS gear and rate Ram Kumar Dwivedi
2025-08-26 15:37 ` Bart Van Assche
2025-08-28 16:28 ` Ram Kumar Dwivedi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250826150855.7725-1-quic_rdwivedi@quicinc.com \
--to=quic_rdwivedi@quicinc.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=bvanassche@acm.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mani@kernel.org \
--cc=martin.petersen@oracle.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).