Re: [PATCH] pinctrl: airoha: fix bias readback in airoha_pinconf_get()
From: Linus Walleij
Date: Wed Nov 04 2026 - 08:33:34 EST
On Fri, Oct 23, 2026 at 7:57 PM Vikrant Yadav
<vikrantyadav4802@xxxxxxxxx> wrote:
> In airoha_pinconf_get(), the last branch of bias check
> "else if (pull_up || pull_down)", has no check on the requested
> parameter. It was meant to reject PIN_CONFIG_BIAS_DISABLE when a pull
> is enabled, but it also runs for PIN_CONFIG_BIAS_PULL_UP and
> PIN_CONFIG_BIAS_PULL_DOWN. When the pin really has that pull set, the
> earlier PULL_UP/PULL_DOWN checks do not reject it, so the execution
> reaches this branch, which returns -EINVAL. Reading back a pull-up or
> pull-down therefore always fails.
>
> Signed-off-by: Vikrant Yadav <vikrantyadav4802@xxxxxxxxx>
Maybe Christian can ACK this patch if it looks right?
Yours,
Linus Walleij