From: sashiko-bot@kernel.org
To: "Gary Wang" <is0124@gmail.com>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
Date: Tue, 24 Nov 2026 17:22:18 +0000 [thread overview]
Message-ID: <sashiko-outbox-231697@kernel.org> (raw)
In-Reply-To: <20261125-upboard-pinctrl-add-intc1057-intc105e-support-v2-4-c8079f8f569f@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] pinctrl: upboard: changelog omits UPBOARD_PIN_MODE_FUNCTION = 1
fix
--
commit 03c95ea6b689b4fbe7c976e4dbf6f9cf5c5f2274
Author: Gary Wang <is0124@gmail.com>
> pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
>
> The CPLD I2C pin mode setting through pinmux-select is not correct.
> Should be set UPBOARD_PIN_MODE_FUNCTION on AANT0F04 devices.
>
> CC: stable@vger.kernel.org
> Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
>
> Signed-off-by: Gary Wang <is0124@gmail.com>
[Severity: Low]
This isn't a bug in the code, but the commit message does not explain why
UPBOARD_PIN_MODE_FUNCTION is changed from 0 to 1.
UPBOARD_PINGROUP() stores 0 in .mode as a sentinel when a per-pin .modes
array is used, and sets .modes to NULL when a single mode constant is used.
Because upboard_pinctrl_set_mux() selects the mode with
mode = upgroups[group_selector].mode ?: upgroups[group_selector].modes[i];
having UPBOARD_PIN_MODE_FUNCTION equal to 0 caused a NULL pointer
dereference of .modes[i] for any pin group using UPBOARD_PIN_MODE_FUNCTION.
Could the changelog mention this as well?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-upboard-pinctrl-add-intc1057-intc105e-support-v2-0-c8079f8f569f@gmail.com?part=4
next prev parent reply other threads:[~2026-11-24 17:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 17:10 [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
2026-11-24 17:10 ` [PATCH v2 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055 Gary Wang
2026-11-24 17:10 ` [PATCH v2 2/5] pinctrl: alderlake: add some groups and functions for INTC1057 Gary Wang
2026-11-24 17:10 ` [PATCH v2 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E Gary Wang
2026-11-24 17:10 ` [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
2026-11-24 17:22 ` sashiko-bot [this message]
2026-11-24 17:31 ` Andy Shevchenko
2026-11-24 17:10 ` [PATCH v2 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
2026-11-24 17:19 ` sashiko-bot
2026-11-24 17:29 ` [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
2026-11-24 17:33 ` Andy Shevchenko
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-231697@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=is0124@gmail.com \
--cc=linux-gpio@vger.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