Re: [PATCH v3 01/10] pinctrl: scmi: report an off setting as not set
From: Linus Walleij
Date: Wed Nov 25 2026 - 13:50:30 EST
On Mon, Nov 23, 2026 at 4:21 PM Clément Le Goffic
<clegoffic@xxxxxxxxxxxx> wrote:
> A get of a setting that is on or off, the flags and the pulls, returned
> 0 as a value, so every one of them showed as set on every pin. Return
> -EINVAL when the platform answers 0, which is how pinconf reports a
> setting that is not active.
> The input, output and schmitt enables keep their value: 0 means disabled
> for them, and the pinctrl based GPIO driver reads the output enable to
> tell the direction of a line.
>
> Fixes: eb524cb651b7 ("pinctrl: Implementation of the generic scmi-pinctrl driver")
> Reviewed-by: Cristian Marussi <cristian.marussi@xxxxxxx>
> Signed-off-by: Clément Le Goffic <clegoffic@xxxxxxxxxxxx>
Patch applied for fixes.
Yours,
Linus Walleij