mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Guru Das Srinagesh <linux@gurudas.dev>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, mfd@lists.linux.dev,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Dhruvin Rajpura <drajpura@qti.qualcomm.com>,
	Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com>,
	Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>,
	Oleg Keri <okerixx@gmail.com>,
	Burke Cates <burke.cates@gmail.com>
Subject: Re: [PATCH v3 3/7] regulator: pm8008: Add mode voting support for PM8010
Date: Mon, 9 Nov 2026 11:46:41 +0530	[thread overview]
Message-ID: <a9ba8ca9-f93d-4a55-9e5e-966121b102bb@oss.qualcomm.com> (raw)
In-Reply-To: <216ffb94-864e-406b-a844-4435b8ca47a1@oss.qualcomm.com>

Hi Konrad,

On 11/2/2026 5:40 PM, Konrad Dybcio wrote:
> On 10/30/26 7:20 AM, Jishnu Prakash wrote:
>> From: Dhruvin Rajpura <drajpura@qti.qualcomm.com>
>>
>> Implement set_mode/get_mode support for PM8010 LDOs using the mode
>> control and status registers to allow clients to vote for LDO modes.
>> Mode voting is not supported in the PM8008 LDOs.
>>
>> Signed-off-by: Dhruvin Rajpura <drajpura@qti.qualcomm.com>
>> Signed-off-by: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
>> ---
> 
> This defers the modesetting to the consumer. Please take a look at
> the qcom-rpmh-regulator driver and implement something like this:
> 
> static unsigned int rpmh_regulator_vrm_get_optimum_mode(
>         struct regulator_dev *rdev, int input_uV, int output_uV, int load_uA)
> {
>         struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
> 
>         if (load_uA >= vreg->hw_data->hpm_min_load_uA)
>                 return REGULATOR_MODE_NORMAL;
>         else
>                 return REGULATOR_MODE_IDLE;
> }
> 
> and fill out the max current allowed for LPM for each regulator

Yes, I'll be making this change in the next patch version.

Thanks,
Jishnu

> 
> Konrad


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

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30  6:20 [PATCH v3 0/7] mfd: qcom-pm8008: Add support for PM8010 over I2C Jishnu Prakash
2026-10-30  6:20 ` [PATCH v3 1/7] dt-bindings: mfd: pm8008: Add qcom,pm8010-i2c compatible Jishnu Prakash
2026-10-30  6:20 ` [PATCH v3 2/7] regulator: pm8008: Add PM8010 support Jishnu Prakash
2026-10-30  6:20 ` [PATCH v3 3/7] regulator: pm8008: Add mode voting support for PM8010 Jishnu Prakash
2026-11-02 12:10   ` Konrad Dybcio
2026-11-09  6:16     ` Jishnu Prakash [this message]
2026-10-30  6:20 ` [PATCH v3 4/7] mfd: qcom-pm8008: Drop GPIO support Jishnu Prakash
2026-10-30  6:20 ` [PATCH v3 5/7] mfd: qcom-pm8008: Add PM8010 support Jishnu Prakash
2026-10-30  6:20 ` [PATCH v3 6/7] dt-bindings: mfd: pm8008: Make interrupts optional Jishnu Prakash
2026-10-30  6:20 ` [PATCH v3 7/7] mfd: qcom-pm8008: Tolerate missing interrupt Jishnu Prakash
2026-10-31 16:24 ` [PATCH v3 0/7] mfd: qcom-pm8008: Add support for PM8010 over I2C Christian Cortner

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=a9ba8ca9-f93d-4a55-9e5e-966121b102bb@oss.qualcomm.com \
    --to=jishnu.prakash@oss.qualcomm.com \
    --cc=broonie@kernel.org \
    --cc=burke.cates@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=drajpura@qti.qualcomm.com \
    --cc=kamal.wadhwa@oss.qualcomm.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@gurudas.dev \
    --cc=mfd@lists.linux.dev \
    --cc=nihal.gupta@oss.qualcomm.com \
    --cc=okerixx@gmail.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®