Files
linux/drivers/pinctrl/spacemit
Junhui Liu c3b0c06b73 pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations
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 <[email protected]>
Reviewed-by: Anand Moon <[email protected]>
Reviewed-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Yixun Lan <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2026-03-19 13:52:56 +01:00
..
…