From: sashiko-bot@kernel.org
To: "Pablo Mazzini" <pmazzini@gmail.com>
Cc: linux-gpio@vger.kernel.org, linux-sunxi@lists.linux.dev
Subject: Re: [PATCH v4 1/3] pinctrl: sunxi: dt: number the IRQ banks from the first one that has IRQs
Date: Thu, 03 Dec 2026 02:56:41 +0000 [thread overview]
Message-ID: <sashiko-outbox-247033@kernel.org> (raw)
In-Reply-To: <20261203024338.13729-2-pmazzini@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] pinctrl: sunxi: missing Fixes trailers for IRQ bank numbering
fixes
--
commit edff0a48a887db49edc17f8bfc19ed23fefd427e
Author: Pablo Mazzini <pmazzini@gmail.com>
> pinctrl: sunxi: dt: number the IRQ banks from the first one that has IRQs
>
> prepare_function_table() starts counting the IRQ banks at bank 0, so
> on SoCs without PortA the first IRQ bank gets number 1. On the A523
> and A733 this numbers PB to PK as 1 to 10, and PK is written past the
> end of irq_array. Start counting at -1 instead, so that the IRQ banks
> match the interrupts in the DT.
>
> irq_bank_map then maps them to the hardware, and both SoCs need one
> for different reasons. The A523 does not implement PortA, but has IRQ
> registers for it, which its map skips. The A733 uses the NCAT3 layout,
> where the IRQ registers are part of the GPIO bank registers, so its
> map gives the GPIO bank. Apply the map to that layout too, which so
> far ignored it.
>
> Signed-off-by: Pablo Mazzini <pmazzini@gmail.com>
> Tested-by: Norman Herms <dockseed@proton.me> # Radxa Cubie A7S (A733)
> Reviewed-by: Alastair D'Silva <alastair@d-silva.org>
> Tested-by: Alastair D'Silva <alastair@d-silva.org> # OrangePi 4 Pro
[Severity: Low]
This fixes an out-of-bounds write past pctl->irq_array and broken IRQ bank
translation on the A523 and A733. Should this include:
Fixes: f5e2cd34b12f ("pinctrl: sunxi: allow reading mux values from DT")
Fixes: 648be4cd9517 ("pinctrl: sunxi: Add support for the Allwinner A523")
Fixes: 3fa025dfe1e7 ("pinctrl: sunxi: support A733 generation MMIO register layout")
Fixes: 0535bfbfa97b ("pinctrl: sunxi: add support for the Allwinner A733")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203024338.13729-1-pmazzini@gmail.com?part=1
next prev parent reply other threads:[~2026-12-03 2:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 2:43 [PATCH v4 0/3] pinctrl: sunxi: number the IRQ banks from the first one that has IRQs Pablo Mazzini
2026-12-03 2:43 ` [PATCH v4 1/3] pinctrl: sunxi: dt: " Pablo Mazzini
2026-12-03 2:56 ` sashiko-bot [this message]
2026-12-03 3:03 ` Pablo Mazzini
2026-12-03 2:43 ` [PATCH v4 2/3] dt-bindings: pinctrl: sun55i-a523: one interrupt per implemented bank Pablo Mazzini
2026-12-03 2:43 ` [PATCH v4 3/3] arm64: dts: allwinner: a523: drop the PA GPIO interrupt 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=sashiko-outbox-247033@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-gpio@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.