mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
Cc: Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>,
	Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	robh@kernel.org, Saikiran <bjsaikiran@gmail.com>,
	monish.chunara@oss.qualcomm.com, nitin.rawat@oss.qualcomm.com,
	Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>,
	lgirdwood@gmail.com, andersson@kernel.org,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
	krzk+dt@kernel.org, devicetree@vger.kernel.org,
	Manivannan Sadhasivam <mani@kernel.org>
Subject: Re: [PATCH v3 0/2] regulator: qcom-rpmh: Add off-on-delay support
Date: Wed, 16 Sep 2026 12:57:12 +0100	[thread overview]
Message-ID: <0d17ef87-0b95-43cf-809d-7d28d3e29afe@sirena.org.uk> (raw)
In-Reply-To: <5ff87d08-c263-4b9d-a18d-c8da8fc0de1a@oss.qualcomm.com>

[-- Attachment #1: Type: text/plain, Size: 2010 bytes --]

On Wed, Sep 16, 2026 at 01:35:09PM +0530, Jishnu Prakash wrote:
> On 9/15/2026 12:04 AM, Mark Brown wrote:
> > On Wed, Sep 09, 2026 at 02:34:21AM +0530, Kamal Wadhwa wrote:

> >> 3. If we can avoid turning the regulator off itself, so we may not need this delay
> > 
> >> point 3 - We evaluated this for UFS - but the problem is that the issue happens in
> >> the defer probe path, so if we avoid turning off the regulator, it leads to long
> >> error prints appearing for the regulator being left ON. So we couldn't take that
> >> path.

> > I think Rob might be thinking here of something like the runtime PM
> > autosuspend delay where once the final reference is dropped we wait some
> > time before we actually implement the power off in hardware, thus a
> > quick power cycle would never actually get implemented.  That does sound
> > like a good idea if we've got issues with quick cycling, obviously the
> > actual delay would still be needed but if you've got quick bounces
> > happening routinely then a delay like that would allow you to avoid both
> > power off and ramp delays.

> I'm working with Kamal for upstreaming this series.

> If I understand you correctly, instead of the approach in this driver
> change (only setting the existing variable "off_on_delay"), you prefer
> having a sequence somewhat like this:

> 1. Regulator (if configured in DT for this new behaviour) gets disable
>    vote from its last enabled consumer
> 2. Delay timer is started
> 3. If regulator gets enable vote before timer expires (quick bounce),
>    clear timer and return without touching regulator HW
> 4. Else, disable regulator when timer expires

> Is this what you meant?

That's what I understand Rob's suggestion to be.  Like I say that would
still need any minimum off time enforcement.

> 
> If the above sequence is right, where would you prefer it to be
> implemented, in the regulator core file or our regulator driver file?
> 
> Thanks,
> Jishnu
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2026-09-16 11:57 UTC|newest]

Thread overview: 22+ 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
2026-06-24 22:16     ` Kamal Wadhwa
2026-06-29 12:13       ` Konrad Dybcio
2026-09-08 13:13         ` Kamal Wadhwa
2026-09-08 13:26           ` Mark Brown
2026-09-08 21:04             ` Kamal Wadhwa
2026-09-14 18:34               ` Mark Brown
2026-09-16  8:05                 ` Jishnu Prakash
2026-09-16 11:57                   ` Mark Brown [this message]
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=0d17ef87-0b95-43cf-809d-7d28d3e29afe@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=andersson@kernel.org \
    --cc=bjorn.andersson@oss.qualcomm.com \
    --cc=bjsaikiran@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jishnu.prakash@oss.qualcomm.com \
    --cc=kamal.wadhwa@oss.qualcomm.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mani@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®