[PATCH 1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations

Anand Moon linux.amoon at gmail.com
Sat Mar 14 01:20:25 PDT 2026


Hi Junhui,

On Thu, 12 Mar 2026 at 14:14, Junhui Liu <junhui.liu at pigmoral.tech> wrote:
>
> Return -ENOTSUPP instead of -EINVAL when encountering unsupported pin
> configuration parameters. This is more logical and allows the GPIO
> subsystem to gracefully handle unsupported parameters via functions like
> gpio_set_config_with_argument_optional(), which specifically ignores
> -ENOTSUPP but treats others as failure.
>
> Signed-off-by: Junhui Liu <junhui.liu at pigmoral.tech>
> ---
Reviewed-by: Anand Moon <linux.amoon at gmail.com>

Thanks
-Anand



More information about the linux-riscv mailing list