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

Bartosz Golaszewski brgl at kernel.org
Fri Mar 13 06:52:06 PDT 2026


On Thu, Mar 12, 2026 at 9:43 AM 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: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>



More information about the linux-riscv mailing list