From: sashiko-bot@kernel.org
To: "Luka Panio" <lukapanio@gmail.com>
Cc: dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org,
devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
lee@kernel.org
Subject: Re: [PATCH v2 5/6] backlight: aw99706: Support the led-max-microamp property
Date: Sat, 05 Dec 2026 00:59:13 +0000 [thread overview]
Message-ID: <sashiko-outbox-250864@kernel.org> (raw)
In-Reply-To: <20261205005118.884885-6-lukapanio@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] backlight: aw99706: empty commit message body omits rationale
and fallback
- [Low] backlight: aw99706: aw99706_dt_parse() warns with wrong name for
legacy prop
--
commit 145a6dabcb5680c7062435715038e4c7b53fef01
Author: Luka Panio <lukapanio@gmail.com>
> backlight: aw99706: Support the led-max-microamp property
>
> Signed-off-by: Luka Panio <lukapanio@gmail.com>
[Severity: Low]
The commit message has no body explaining why the driver switches to
led-max-microamp or noting that awinic,iled-max-microamp is retained as a
fallback when led-max-microamp is absent. A short description of the
rationale and fallback precedence would help future readers of git history.
> diff --git a/drivers/video/backlight/aw99706.c b/drivers/video/backlight/aw99706.c
> index db12ee1c979da..5e0f8ccd3c88e 100644
> --- a/drivers/video/backlight/aw99706.c
> +++ b/drivers/video/backlight/aw99706.c
[ ... ]
> @@ -291,6 +293,10 @@ static void aw99706_dt_parse(struct aw99706_device *aw,
> for (i = 0; i < chip->num_dt_props; i++) {
> prop = &chip->dt_props[i];
> ret = device_property_read_u32(aw->dev, prop->name, &dt_val);
> + if (ret < 0 && prop->legacy_name)
> + ret = device_property_read_u32(aw->dev,
> + prop->legacy_name,
> + &dt_val);
> if (ret < 0)
> dt_val = prop->def_val;
[Severity: Low]
When a legacy device tree omits led-max-microamp and provides an invalid
awinic,iled-max-microamp value, does the dev_warn() right below log
prop->name (led-max-microamp) instead of the legacy property that supplied
dt_val?
Tracking the matched property name in a local variable and passing it to
dev_warn() would ensure the warning identifies the offending property.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205005118.884885-1-lukapanio@gmail.com?part=5
next prev parent reply other threads:[~2026-12-05 0:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 0:51 [PATCH v2 0/6] backlight: aw99706: Add Awinic AW99703 support Luka Panio
2026-12-05 0:51 ` [PATCH v2 1/6] dt-bindings: leds: backlight: aw99706: Use standard led-max-microamp Luka Panio
2026-12-05 1:01 ` sashiko-bot
2026-12-05 0:51 ` [PATCH v2 2/6] dt-bindings: leds: backlight: Add Awinic AW99703 backlight Luka Panio
2026-12-05 1:04 ` sashiko-bot
2026-12-05 0:51 ` [PATCH v2 3/6] backlight: aw99706: Enable the chip before reading its ID Luka Panio
2026-12-05 1:05 ` sashiko-bot
2026-12-05 0:51 ` [PATCH v2 4/6] backlight: aw99706: Introduce per-chip data Luka Panio
2026-12-05 0:51 ` [PATCH v2 5/6] backlight: aw99706: Support the led-max-microamp property Luka Panio
2026-12-05 0:59 ` sashiko-bot [this message]
2026-12-05 0:51 ` [PATCH v2 6/6] backlight: aw99706: Add AW99703 support Luka Panio
2026-12-05 1:11 ` sashiko-bot
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=sashiko-outbox-250864@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=lee@kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=lukapanio@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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