From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>,
Saikiran <bjsaikiran@gmail.com>,
broonie@kernel.org, monish.chunara@oss.qualcomm.com,
jishnu.prakash@oss.qualcomm.com, nitin.rawat@oss.qualcomm.com,
Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
Cc: lgirdwood@gmail.com, andersson@kernel.org,
konrad.dybcio@kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, robh@kernel.org,
krzk+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 0/2] regulator: qcom-rpmh: Add off-on-delay support
Date: Tue, 16 Jun 2026 13:48:50 +0200 [thread overview]
Message-ID: <06a264d0-6a14-4b71-b783-82b771f04411@oss.qualcomm.com> (raw)
In-Reply-To: <20260515111647.qg75thdvcbvvjpoi@hu-kamalw-hyd.qualcomm.com>
On 5/15/26 1:16 PM, Kamal Wadhwa wrote:
> On Wed, Jan 28, 2026 at 12:32:09AM +0530, Saikiran wrote:
>> This series adds support for the standard `regulator-off-on-delay-us`
>> property to the Qualcomm RPMh regulator driver and updates the
>> corresponding Device Tree bindings.
>>
>> Motivation:
>> On the Lenovo Yoga Slim 7x (Snapdragon X Elite), the camera regulators
>> (LDO1, LDO3, LDO7) have large bulk capacitors and rely on passive discharge.
>> When these regulators are disabled, the voltage decays very slowly. If
>> re-enabled too quickly, the sensor experiences a brownout and fails to
>> initialize.
>>
>> Verification:
>> I verified that the core `drivers/regulator/of_regulator.c` does not
>> currently parse `regulator-off-on-delay-us` in `of_get_regulation_constraints()`.
>> Therefore, the driver must parse this property explicitly and populate
>> `rdesc->off_on_delay` so the regulator core can enforce the constraint.
>>
>> Changes in v3:
>> - Added Patch 1/2: Update DT bindings to allow `regulator-off-on-delay-us`
>> for `qcom,rpmh-regulator` (Requested by Mark Brown).
>> - Updated Patch 2/2: Refined commit message to explicitly mention the
>> passive discharge and bulk capacitor mechanism on the Yoga Slim 7x
>> (Requested by Mark Brown).
>>
>> Changes in v2:
>> - Moved the motivation/context from the cover letter into the commit
>> message of the driver patch.
>>
>> Saikiran (2):
>> dt-bindings: regulator: qcom,rpmh: Allow regulator-off-on-delay-us
>> regulator: qcom-rpmh: Add support for regulator-off-on-delay-us
>
> Hi Mark, Bjorn, Konrad and all,
>
> We have another UFS issue on QCS8300 RB4 EVK, where it seems this patch is
> helping.
>
> Issue is seen 2/10 reboots and it happens in the UFS probe defer path:
>
> 1. UFS probe takes regulator handle for VCC(vreg_l8a) of UFS host controller.
> 2. UFS probe enables the regulator
> 3. UFS probe defers (due to some other dependency un-related to regulator)
> 4. UFS regulator disabled on probe exit
> 5. UFS re-attempts probe and re-enables the regulator
> 6. UFS init sequence runs -> UFS NOP OUT command failed (no shell)
>
> Issue Log:
>
> [ 6.583836] ufshcd-qcom 1d84000.ufs: ufshcd_verify_dev_init: NOP OUT failed -11
> [ 6.592780] ufshcd-qcom 1d84000.ufs: ufshcd_async_scan failed: -11
>
> NOTE
> - Issue is not seen in first probe attempt, because UFS regulators are left ON
> from bootloader, which gives enough time between rail turn ON and UFS init
> sequence start. However in issue case, it seems re-probe is happening too
> fast, which causes init sequence to fail and UFS brownouts (similar to camera
> sensor case)
>
> - Also, we compared this board with other RBxx EVK boards for UFS rail, it
> seems that this board has more caps on the VCC regulator, as the board is
> designed to have both EMMC and UFS, and we have DT option to pick one of them.
>
> So for EMMC those extra caps were added and they are impacting rampup on VCC.
>
> Since this is not entirely a UFS part issue, but a board design constraint, it
> seems better if we handle this in the regulator side itself, as adding it in the
> UFS driver may not be acceptable from UFS reviewers.
>
> Please share your opinion, if this seems to be good reason to accept this patch?
Is that board in production already, or is that something that can be fixed?
Konrad
next prev parent reply other threads:[~2026-06-16 11:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-27 19:02 Saikiran
2026-01-27 19:02 ` [PATCH v3 1/2] dt-bindings: regulator: qcom,rpmh: Allow regulator-off-on-delay-us Saikiran
2026-01-29 17:49 ` Rob Herring
2026-01-29 18:15 ` Mark Brown
2026-01-30 11:05 ` Konrad Dybcio
2026-02-03 16:20 ` Kamal Wadhwa
2026-02-03 16:30 ` Mark Brown
2026-02-06 16:19 ` Kamal Wadhwa
2026-02-08 13:07 ` Saikiran B
2026-02-12 8:51 ` Kamal Wadhwa
2026-01-27 19:02 ` [PATCH v3 2/2] regulator: qcom-rpmh: Add support for regulator-off-on-delay-us Saikiran
2026-05-15 11:16 ` [PATCH v3 0/2] regulator: qcom-rpmh: Add off-on-delay support Kamal Wadhwa
2026-06-16 11:48 ` Konrad Dybcio [this message]
2026-06-24 22:16 ` Kamal Wadhwa
2026-06-29 12:13 ` Konrad Dybcio
2026-06-30 14:11 ` Manivannan Sadhasivam
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=06a264d0-6a14-4b71-b783-82b771f04411@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=bjorn.andersson@oss.qualcomm.com \
--cc=bjsaikiran@gmail.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jishnu.prakash@oss.qualcomm.com \
--cc=kamal.wadhwa@oss.qualcomm.com \
--cc=konrad.dybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=monish.chunara@oss.qualcomm.com \
--cc=nitin.rawat@oss.qualcomm.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
all inboxes | Powered by JetHome®