From: sashiko-bot@kernel.org
To: "Pablo Mazzini" <pmazzini@gmail.com>
Cc: linux-sunxi@lists.linux.dev
Subject: Re: [PATCH v1 04/11] pinctrl: sunxi: add Allwinner B288 pin controller driver
Date: Wed, 23 Sep 2026 20:30:25 +0000 [thread overview]
Message-ID: <20260923203025.8A8781F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923201701.43391-4-pmazzini@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] pinctrl: sunxi: IRQ index collision for pin G3
--
commit fdee02e8823a26621c358b63abf2ff74202265b9
Author: Pablo Mazzini <pmazzini@gmail.com>
pinctrl: sunxi: add Allwinner B288 pin controller driver
This commit adds the pin controller and GPIO support for the Allwinner B288
SoC, covering 78 pins across ports B, C, D, F, and G, including four banks
of external interrupt capable pins.
> diff --git a/drivers/pinctrl/sunxi/pinctrl-sun8i-b288.c b/drivers/pinctrl/sunxi/pinctrl-sun8i-b288.c
> new file mode 100644
> --- /dev/null
> +++ b/drivers/pinctrl/sunxi/pinctrl-sun8i-b288.c
[ ... ]
> + SUNXI_PIN(SUNXI_PINCTRL_PIN(G, 1),
> + SUNXI_FUNCTION(0x0, "gpio_in"),
> + SUNXI_FUNCTION(0x1, "gpio_out"),
> + SUNXI_FUNCTION(0x2, "pwm7"),
> + SUNXI_FUNCTION(0x3, "dmic0"),
> + SUNXI_FUNCTION(0x4, "spi1"),
> + SUNXI_FUNCTION(0x5, "sdc1"),
> + SUNXI_FUNCTION(0x7, "io_disabled"),
> + SUNXI_FUNCTION_IRQ_BANK(0x6, 3, 1)),
> + SUNXI_PIN(SUNXI_PINCTRL_PIN(G, 2),
> + SUNXI_FUNCTION(0x0, "gpio_in"),
> + SUNXI_FUNCTION(0x1, "gpio_out"),
> + SUNXI_FUNCTION(0x2, "twi1"),
> + SUNXI_FUNCTION(0x3, "dmic0"),
> + SUNXI_FUNCTION(0x4, "spi1"),
> + SUNXI_FUNCTION(0x5, "sdc1"),
> + SUNXI_FUNCTION(0x7, "io_disabled"),
> + SUNXI_FUNCTION_IRQ_BANK(0x6, 3, 2)),
> + SUNXI_PIN(SUNXI_PINCTRL_PIN(G, 3),
> + SUNXI_FUNCTION(0x0, "gpio_in"),
> + SUNXI_FUNCTION(0x1, "gpio_out"),
> + SUNXI_FUNCTION(0x2, "twi1"),
> + SUNXI_FUNCTION(0x3, "dmic0"),
> + SUNXI_FUNCTION(0x4, "spi1"),
> + SUNXI_FUNCTION(0x5, "sdc1"),
> + SUNXI_FUNCTION(0x7, "io_disabled"),
> + SUNXI_FUNCTION_IRQ_BANK(0x6, 3, 1)),
[Severity: Medium]
Does this incorrectly assign IRQ index 1 instead of 3 for pin G3?
It looks like SUNXI_FUNCTION_IRQ_BANK is assigning IRQ index 1 for pin G3 in
the sun8i_b288_pins array, which collides with the IRQ mapping for pin G1
defined earlier. This could cause external interrupts on G3 to be incorrectly
routed or to conflict with G1.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260923201701.43391-1-pmazzini@gmail.com?part=4
next prev parent reply other threads:[~2026-09-23 20:30 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 20:16 [PATCH v1 01/11] dt-bindings: clock: add Allwinner B288 CCU Pablo Mazzini
2026-09-23 20:16 ` [PATCH v1 02/11] clk: sunxi-ng: add Allwinner B288 CCU driver Pablo Mazzini
2026-09-23 20:36 ` sashiko-bot
2026-09-23 20:16 ` [PATCH v1 03/11] dt-bindings: pinctrl: add Allwinner B288 pin controller Pablo Mazzini
2026-09-23 20:32 ` sashiko-bot
2026-09-24 9:07 ` Andre Przywara
2026-09-24 20:16 ` Pablo Mazzini
2026-09-23 20:16 ` [PATCH v1 04/11] pinctrl: sunxi: add Allwinner B288 pin controller driver Pablo Mazzini
2026-09-23 20:30 ` sashiko-bot [this message]
2026-09-24 9:17 ` Andre Przywara
2026-09-24 20:28 ` Pablo Mazzini
2026-09-25 8:21 ` Andre Przywara
2026-09-23 20:16 ` [PATCH v1 05/11] dt-bindings: rtc: sun6i-a31: add Allwinner B288 Pablo Mazzini
2026-09-23 20:28 ` sashiko-bot
2026-09-23 20:16 ` [PATCH v1 06/11] rtc: sun6i: add Allwinner B288 compatible Pablo Mazzini
2026-09-23 20:30 ` sashiko-bot
2026-09-23 20:16 ` [PATCH v1 08/11] dt-bindings: mmc: sun4i-a10-mmc: add Allwinner B288 Pablo Mazzini
2026-09-23 20:16 ` [PATCH v1 09/11] dt-bindings: interrupt-controller: add Allwinner B288 NMI Pablo Mazzini
2026-09-23 20:17 ` [PATCH v1 10/11] dt-bindings: arm: sunxi: add PocketBook Verse Pablo Mazzini
2026-09-28 10:54 ` Krzysztof Kozlowski
2026-09-23 20:17 ` [PATCH v1 11/11] ARM: sunxi: add B288 and the PocketBook Verse board Pablo Mazzini
2026-09-23 20:34 ` sashiko-bot
2026-09-24 9:03 ` [PATCH v1 01/11] dt-bindings: clock: add Allwinner B288 CCU Andre Przywara
2026-09-24 20:12 ` Pablo Mazzini
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=20260923203025.8A8781F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=pmazzini@gmail.com \
--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