]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gpio: rockchip: Call pinctrl for gpio config
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 2 Mar 2026 20:17:17 +0000 (21:17 +0100)
committerLinus Walleij <linusw@kernel.org>
Tue, 3 Mar 2026 07:35:27 +0000 (08:35 +0100)
Pinctrl is responsible for bias settings and possibly other pin config,
so call gpiochip_generic_config to apply such config values. This might
also include settings that pinctrl does not support, but then it can
return ENOTSUPP as appropriate.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/gpio/gpio-rockchip.c

index 0fff4a699f12d189c22923b2467c7c2fb041ad2d..ac1b939283eb7e4dca84b10dd6bb9ebe88e93204 100644 (file)
@@ -296,7 +296,7 @@ static int rockchip_gpio_set_config(struct gpio_chip *gc, unsigned int offset,
                 */
                return -ENOTSUPP;
        default:
-               return -ENOTSUPP;
+               return gpiochip_generic_config(gc, offset, config);
        }
 }