[PATCH] pinctrl: sunxi: Implement function_is_gpio
Linus Walleij
linusw at kernel.org
Tue May 26 02:34:06 PDT 2026
On Mon, May 25, 2026 at 11:39 PM Andre Przywara <andre.przywara at arm.com> wrote:
> And what about the IRQ function? Isn't that some GPIO as well, or does
> that not count for the purpose of the function_is_gpio() callback?
The purpose of the function is to tell the GPIO subsystem if a pin
is muxed into GPIO mode, and by that we mean a driver using
struct gpio_chip, so we can approve a request of gpiod_get*().
The struct irq_chip is often orthogonal and I think it would usually
"just work", and a struct irq_chip unrelated to a struct gpio_chip
(i.e. there is no way to actually drive or listen to the lines) is
something completely separate from struct gpio_chip.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list