From: "chr[]" <chris@rudorff.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Linus Walleij" <linusw@kernel.org>,
"Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v3 2/3] iio: light: gp2ap002: add led power supply
Date: Wed, 4 Nov 2026 14:00:26 +0100 [thread overview]
Message-ID: <eacf96b0-a4d8-414b-a3c6-b0d7913b1371@rudorff.com> (raw)
In-Reply-To: <ath32oZkOYl2UwqX@ashevche-desk.local>
Hi Andy,
Thanks for the review.
I'm about pretty up this patch. My comment on this:
Am 21.10.26 um 10:29 schrieb Andy Shevchenko:
> On Tue, Oct 20, 2026 at 01:35:39PM +0200, Christoph Rudorff wrote:
>
> ...
>
>> ret = gp2ap002_init(gp2ap002);
>> if (ret) {
>> dev_err(dev, "initialization failed\n");
>> - goto out_disable_vio;
>> + goto out_disable_power;
>> }
>> pm_runtime_get_noresume(dev);
>> pm_runtime_set_active(dev);
>> @@ -616,10 +619,8 @@ static int gp2ap002_probe(struct i2c_client *client)
>> pm_runtime_put_noidle(dev);
>> out_disable_pm:
>> pm_runtime_disable(dev);
>> -out_disable_vio:
>> - regulator_disable(gp2ap002->vio);
>> -out_disable_vdd:
>> - regulator_disable(gp2ap002->vdd);
>> +out_disable_power:
>> + regulator_bulk_disable(NUM_SUPPLIES, gp2ap002->supplies);
>> return ret;
>
> Wondering if we can use managed resources to disable regulators.
>
Well, me too. But there is just one way to make devres bulk_disable: use
devm_regulator_bulk_get_enable() but we want to set voltages before enabling.
With Best Regards,
chris
next prev parent reply other threads:[~2026-11-04 13:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-20 11:35 [PATCH v3 0/3] MSM8916: improve gp2ap002 proximity sensor v3 Christoph Rudorff
2026-10-20 11:35 ` [PATCH v3 1/3] dt-bindings: iio: light: gp2ap002: add leda power supply Christoph Rudorff
2026-10-20 17:14 ` Linus Walleij
2026-10-22 10:18 ` Krzysztof Kozlowski
2026-10-20 11:35 ` [PATCH v3 2/3] iio: light: gp2ap002: add led " Christoph Rudorff
2026-10-20 17:15 ` Linus Walleij
2026-10-24 3:03 ` Jonathan Cameron
2026-10-21 8:29 ` Andy Shevchenko
2026-11-04 13:00 ` chr[] [this message]
2026-10-20 11:35 ` [PATCH v3 3/3] arm64: dts: qcom: msm8916-samsung-j5: Add proximity sensor Christoph Rudorff
2026-10-20 17:16 ` Linus Walleij
2026-10-21 7:58 ` Konrad Dybcio
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=eacf96b0-a4d8-414b-a3c6-b0d7913b1371@rudorff.com \
--to=chris@rudorff.com \
--cc=andersson@kernel.org \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.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®