Re: [PATCH v2] pinctrl: sunxi: dt: do not accumulate npins across probe attempts

From: Linus Walleij

Date: Mon Oct 12 2026 - 05:35:44 EST


On Wed, Oct 7, 2026 at 8:01 AM Pablo Mazzini <pmazzini@xxxxxxxxx> wrote:

> init_pins_table() adds to npins in the driver's static descriptor, so
> after a probe deferral the count doubles and the next probe fails with
> "pin 0 already registered". Reset it first.
>
> Signed-off-by: Pablo Mazzini <pmazzini@xxxxxxxxx>
> ---
> v2: reset npins instead of counting into a local (Andre)

Patch applied for fixes!

Yours,
Linus Walleij