From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Christoph Rudorff <chris@rudorff.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 v4 2/3] iio: light: gp2ap002: add led power supply
Date: Wed, 4 Nov 2026 19:31:08 +0200 [thread overview]
Message-ID: <autr3DH6UZLY_ys4@ashevche-desk.local> (raw)
In-Reply-To: <20261104-iio-light-gp2ap002-v4-2-fa1cbaad2ce5@rudorff.com>
On Wed, Nov 04, 2026 at 02:02:28PM +0100, Christoph Rudorff wrote:
> Problem: no irq received. Not working.
>
> According to datasheet page 8 "Recommended external circuit",
> it got tree pins to supply: vio, vdd and vled->leda.
>
> We were missing to power the led (pin leda)
>
> * add leda regulator
> * use regulator_bulk_*()
> * pretty up set voltages
>
> Tested on samsung-j5 (msm8916)
>
> Signed-off-by: Christoph Rudorff <chris@rudorff.com>
>
Missing '---' cutter line which makes this patch invalid and it may not be
applied (your SoB should be a tag and it should be last in the chain; you may
conduct an experiment, take the message ID of this email, run on a clean Linux
kernel Git repository something like `b4 am -s $MSG_ID; git am ...` followed by
`git log`, you will see the issue).
> v2: Use regulator bulk api.
> v3: pretty up, rename vled to leda
> v4: add namespace "GP2AP002", use separate value for setting vdd,
> moved static supply-data back to global, more readable imho
> ---
...
> int num_chan;
> const char *compat;
> u8 val;
> - int ret;
> + int ret, vdd_volt;
Don't mix semantically different variables on the same line.
Try to keep reversed xmas tree order.
...
> if (ret) {
> - dev_err(dev, "failed to sett VDD voltage\n");
> + dev_err(dev, "failed to set VDD voltage\n");
> return ret;
Unrelated change.
> }
> -
Stray change.
...
I stopped here.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-11-04 17:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 13:02 [PATCH v4 0/3] MSM8916: improve gp2ap002 proximity sensor Christoph Rudorff
2026-11-04 13:02 ` [PATCH v4 1/3] dt-bindings: iio: light: gp2ap002: add leda power supply Christoph Rudorff
2026-11-04 19:45 ` Rob Herring
2026-11-04 13:02 ` [PATCH v4 2/3] iio: light: gp2ap002: add led " Christoph Rudorff
2026-11-04 17:31 ` Andy Shevchenko [this message]
2026-11-04 13:02 ` [PATCH v4 3/3] arm64: dts: qcom: msm8916-samsung-j5: Add proximity sensor Christoph Rudorff
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=autr3DH6UZLY_ys4@ashevche-desk.local \
--to=andriy.shevchenko@intel.com \
--cc=andersson@kernel.org \
--cc=andy@kernel.org \
--cc=chris@rudorff.com \
--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®