[PATCH] pinctrl: sunxi: Implement gpiochip::get_direction()

Bartosz Golaszewski brgl at kernel.org
Tue Feb 17 03:03:03 PST 2026


On Mon, 16 Feb 2026 17:09:45 +0100, Chen-Yu Tsai <wens at kernel.org> said:
> After commit e623c4303ed1 ("gpiolib: sanitize the return value of
> gpio_chip::get_direction()"), a warning will be printed if the
> gpio driver does not implement this callback.
>
> Implement it for the sunxi driver. This is simply a matter of reading
> out the mux value from the registers, then checking if it is one of
> the GPIO functions and which direction it is.
>
> Signed-off-by: Chen-Yu Tsai <wens at kernel.org>
> ---

Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>



More information about the linux-arm-kernel mailing list