From: Neil Armstrong <neil.armstrong@linaro.org>
To: Gyeyoung Baek <gye976@gmail.com>
Cc: Lee Jones <lee@kernel.org>, Daniel Thompson <danielt@kernel.org>,
Jingoo Han <jingoohan1@gmail.com>,
Pavel Machek <pavel@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Helge Deller <deller@gmx.de>,
dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-fbdev@vger.kernel.org, KancyJoe <kancy2333@outlook.com>
Subject: Re: [PATCH 2/2] backlight: Add SY7758 6-channel High Efficiency LED Driver support
Date: Wed, 29 Apr 2026 11:03:49 +0200 [thread overview]
Message-ID: <bac23b70-758f-4944-b040-753fc40a53c5@linaro.org> (raw)
In-Reply-To: <CAKbEznvPAYFUt-ykH7rCQwMFUq6N68B9x7Dd97WRDm3Mvj34fw@mail.gmail.com>
On 4/29/26 01:35, Gyeyoung Baek wrote:
> Hi,
>
>> +
>> +static int sy7758_probe(struct i2c_client *client)
>> +{
>
>> +
>> + /* try read and check device id */
>> + ret = regmap_read(sydev->regmap, REG_DEV_ID, &dev_id);
>> + if (ret < 0)
>> + return dev_err_probe(dev, -EPROBE_DEFER,
>> + "failed to read device id\n");
>
> regmap_read() seems it can return errors other than -EPROBE_DEFER
> (like -EINVAL,), and hardcoding -EPROBE_DEFER here might drop the
> actual error.
> And maybe would keep retrying probe forever
I forgot to change it, initially the powering was clunky and we had a read error
in the first probe, but now it's solved so I'll remove it.
Neil
>
> How about this?
>> + return dev_err_probe(dev, ret, "failed to read device id\n");
>
>
prev parent reply other threads:[~2026-04-29 9:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-28 13:59 [PATCH 0/2] backlight: Add SY7758 6-channel High Efficiency LED Driver support Neil Armstrong
2026-04-28 13:59 ` [PATCH 1/2] dt-bindings: regulator: document the SY7758 6-channel High Efficiency LED Driver Neil Armstrong
2026-04-30 9:40 ` Krzysztof Kozlowski
2026-04-28 13:59 ` [PATCH 2/2] backlight: Add SY7758 6-channel High Efficiency LED Driver support Neil Armstrong
2026-04-28 23:35 ` Gyeyoung Baek
2026-04-29 9:03 ` Neil Armstrong [this message]
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=bac23b70-758f-4944-b040-753fc40a53c5@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=conor+dt@kernel.org \
--cc=danielt@kernel.org \
--cc=deller@gmx.de \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gye976@gmail.com \
--cc=jingoohan1@gmail.com \
--cc=kancy2333@outlook.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@kernel.org \
--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