[PATCH] pinctrl: sunxi: dt: Consider pin base when calculating bank number from pin
Linus Walleij
linus.walleij at linaro.org
Tue Jun 10 05:36:05 PDT 2025
On Sat, Jun 7, 2025 at 3:52 PM Chen-Yu Tsai <wens at kernel.org> wrote:
> From: Chen-Yu Tsai <wens at csie.org>
>
> In prepare_function_table() when the pinctrl function table IRQ entries
> are generated, the pin bank is calculated from the absolute pin number;
> however the IRQ bank mux array is indexed from the first pin bank of the
> controller. For R_PIO controllers, this means the absolute pin bank is
> way off from the relative pin bank used for array indexing.
>
> Correct this by taking into account the pin base of the controller.
>
> Fixes: f5e2cd34b12f ("pinctrl: sunxi: allow reading mux values from DT")
> Signed-off-by: Chen-Yu Tsai <wens at csie.org>
Patch applied for fixes!
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list