[PW_SID:1065485] gpio/pinctrl: spacemit: Add GPIO pin configuration support for K1#1601
[PW_SID:1065485] gpio/pinctrl: spacemit: Add GPIO pin configuration support for K1#1601linux-riscv-bot wants to merge 2 commits into
Conversation
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@pigmoral.tech> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Assign gpiochip_generic_config() to the set_config() callback to support pin configuration through the GPIO subsystem. This allows users to configure GPIO pin attributes like pull-up/down when specifying a GPIO line in the Device Tree. Signed-off-by: Junhui Liu <junhui.liu@pigmoral.tech> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 1: "[1/2] pinctrl: spacemit: return -ENOTSUPP for unsupported pin configurations" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
|
Patch 2: "[2/2] gpio: spacemit-k1: Add set_config callback support" |
PR for series 1065485 applied to workflow__riscv__fixes
Name: gpio/pinctrl: spacemit: Add GPIO pin configuration support for K1
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1065485
Version: 1