From: sashiko-bot@kernel.org
To: "Jun Yan" <jerrysteve1101@gmail.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 3/6] gpiolib: of: add quirk for IS31FL319X shutdown line
Date: Mon, 25 May 2026 15:42:50 +0000 [thread overview]
Message-ID: <20260525154251.A0E151F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260525144629.498630-4-jerrysteve1101@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Incomplete backward compatibility quirk for IS31FL319X shutdown GPIO polarity, risking breakage for out-of-tree platforms.
- [Low] Use of non-ASCII characters (non-breaking hyphens) in source code comments.
--
commit 8f0eb876e212314197458aa41b5be24457af3ea3
Author: Jun Yan <jerrysteve1101@gmail.com>
gpiolib: of: add quirk for IS31FL319X shutdown line
This commit adds a fixup to force the consumer active low for legacy
device trees that incorrectly configure the SDB pin as active-high.
> diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
> index 2c923d17541f2..f60291dcc90f7 100644
> --- a/drivers/gpio/gpiolib-of.c
> +++ b/drivers/gpio/gpiolib-of.c
[ ... ]
> @@ -194,6 +194,16 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np,
> { "himax,hx8357", "gpios-reset", false },
> { "himax,hx8369", "gpios-reset", false },
> #endif
> +#if IS_ENABLED(CONFIG_LEDS_IS31FL319X)
> + /*
> + * According to the IS31FL319x datasheet, the SDB pin is active‑low.
> + * However, existing device tree incorrectly configure it
> + * as active‑high.
[Severity: Low]
This isn't a bug, but are there non-ASCII non-breaking hyphens (U+2011) used
here instead of standard ASCII hyphens?
Using standard ASCII hyphens (U+002D) for "active-low" and "active-high"
helps ensure the terms can be found using standard text search tools like
git grep.
> + */
> + { "issi,is31fl3199", "shutdown-gpios", false },
> + { "si-en,sn3190", "shutdown-gpios", false },
> + { "si-en,sn3193", "shutdown-gpios", false },
[Severity: Medium]
Will this omission break out-of-tree platforms using legacy device trees with
the other compatible strings for this driver?
The driver supports several other compatible strings (such as "issi,is31fl3190",
"issi,is31fl3196", "si-en,sn3196") which are not listed here.
If a legacy device tree uses one of the omitted compatibles, this quirk will be
bypassed. Because the updated driver now requests the GPIO with GPIOD_OUT_LOW,
a legacy device tree specifying GPIO_ACTIVE_HIGH would map to a physical LOW
signal, which would permanently hold the chip in shutdown.
Could we list all the compatible strings for this hardware family to ensure
ABI compatibility isn't broken for other legacy users?
> +#endif
> #if IS_ENABLED(CONFIG_MTD_NAND_JZ4780)
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260525144629.498630-1-jerrysteve1101@gmail.com?part=3
next prev parent reply other threads:[~2026-05-25 15:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-25 14:46 [PATCH v2 0/6] leds: is31fl319x: Fix shutdown GPIO and update DT bindings Jun Yan
2026-05-25 14:46 ` [PATCH v2 1/6] dt-bindings: leds: issi,is31fl319x: Update description for the shutdown-gpios property Jun Yan
2026-05-25 14:46 ` [PATCH v2 2/6] leds: is31fl319x: Fix shutdown GPIO initial state and remove redundant startup pulse Jun Yan
2026-05-25 15:17 ` sashiko-bot
2026-06-01 8:20 ` Krzysztof Kozlowski
2026-05-25 14:46 ` [PATCH v2 3/6] gpiolib: of: add quirk for IS31FL319X shutdown line Jun Yan
2026-05-25 15:42 ` sashiko-bot [this message]
2026-05-29 20:14 ` Linus Walleij
2026-05-26 8:40 ` Bartosz Golaszewski
2026-05-29 20:10 ` Linus Walleij
2026-05-25 14:46 ` [PATCH v2 4/6] arm64: dts: qcom: msm8916-alcatel-idol347: Fix sn3190 shutdown GPIO polarity Jun Yan
2026-05-25 14:46 ` [PATCH v2 5/6] ARM: dts: qcom: msm8974-oneplus-bacon: Fix sn3193 " Jun Yan
2026-05-25 16:03 ` sashiko-bot
2026-05-25 14:46 ` [PATCH v2 6/6] arm64: dts: marvell: armada-7040-mochabin: Fix is31fl3199 " Jun Yan
2026-06-01 6:58 ` Gregory CLEMENT
2026-06-01 8:21 ` Krzysztof Kozlowski
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=20260525154251.A0E151F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jerrysteve1101@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