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 3/6] backlight: aw99706: Enable the chip before reading its ID
Date: Sat, 05 Dec 2026 01:05:46 +0000 [thread overview]
Message-ID: <sashiko-outbox-250882@kernel.org> (raw)
In-Reply-To: <20261205005118.884885-4-lukapanio@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] backlight: aw99706: GPIOD_OUT_LOW causes HWEN low glitch in
aw99706_probe()
--
commit 075b8a34b2576dc02fa570093a2f3e92820bbe54
Author: Luka Panio <lukapanio@gmail.com>
backlight: aw99706: Enable the chip before reading its ID
This commit moves the chip ID read in aw99706_probe() after requesting and
asserting the enable GPIO, and de-asserts the GPIO if subsequent probe steps
fail.
> diff --git a/drivers/video/backlight/aw99706.c b/drivers/video/backlight/aw99706.c
> index 43f82c83f91a3..c6b0d0122ad69 100644
> --- a/drivers/video/backlight/aw99706.c
> +++ b/drivers/video/backlight/aw99706.c
> @@ -389,11 +389,6 @@ static int aw99706_probe(struct i2c_client *client)
[ ... ]
> aw->hwen_gpio = devm_gpiod_get(aw->dev, "enable", GPIOD_OUT_LOW);
> @@ -401,23 +396,39 @@ static int aw99706_probe(struct i2c_client *client)
> return dev_err_probe(dev, PTR_ERR(aw->hwen_gpio),
> "Failed to get enable gpio\n");
>
> + gpiod_set_value_cansleep(aw->hwen_gpio, 1);
> +
> + ret = aw99706_chip_id_read(aw);
[Severity: Medium]
Does requesting aw->hwen_gpio with GPIOD_OUT_LOW and immediately asserting
it high glitch the enable line low before aw99706_chip_id_read()?
On boards where the bootloader already enabled the backlight, this low
pulse can reset the chip, causing display flicker or making
aw99706_chip_id_read() fail while the chip is resetting. Requesting the
GPIO with GPIOD_OUT_HIGH instead would avoid the low pulse and remove the
redundant gpiod_set_value_cansleep() call.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205005118.884885-1-lukapanio@gmail.com?part=3
next prev parent reply other threads:[~2026-12-05 1:05 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 [this message]
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
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-250882@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