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

Yao Zi me at ziyao.cc
Fri Mar 13 06:37:34 PDT 2026


On Thu, Mar 12, 2026 at 04:42:42PM +0800, Junhui Liu 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.

This sounds like a fix and deserves Fixes tag, though I'm not sure
whether backporting is appropriate since no existing system should be
affected...

Regards,
Yao Zi



More information about the linux-riscv mailing list