Re: [PATCH] pinctrl: sunxi: Implement function_is_gpio
From: Linus Walleij
Date: Tue May 26 2026 - 05:34:25 EST
On Mon, May 25, 2026 at 11:39 PM Andre Przywara <andre.przywara@xxxxxxx> 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