Re: [PATCH v2 1/6] pinctrl: tegra186: Fix out-of-bounds register bank index for AON drive groups

From: Linus Walleij

Date: Wed Nov 25 2026 - 13:34:05 EST


On Thu, Nov 19, 2026 at 9:48 PM Lee Jones <lee@xxxxxxxxxx> wrote:

> The Tegra186 AON pinmux controller has only a single register bank
> (nbanks = 1, indexed at 0), and all PINGROUP entries in
> tegra186_aon_groups accordingly specify bank 0. However, all 51 AON
> drive_* macro definitions pass drv_bank = 1 as the final argument to
> DRV_PINGROUP_ENTRY_Y, causing any drive configuration read or write on
> an AON drive group to index pmx->regs[1] out-of-bounds.
>
> Update the AON drive_* macro definitions to use register bank 0.
>
> Fixes: 542baf77f092 ("pinctrl: tegra: Add Tegra186 pinmux driver")
> Closes: https://sashiko.dev/#/bug/linux-a9a7165c-c5eb-463a-b7b1-24a30416b33b
> Cc: stable@xxxxxxxxxxxxxxx
> Reviewed-by: Thierry Reding <treding@xxxxxxxxxx>
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>

Patch applied!

Yours,
Linus Walleij