[PATCH] gpio/rockchip: lock GPIOs used as interrupts
Nicolas Frattaroli
frattaroli.nicolas at gmail.com
Thu Dec 2 08:45:49 PST 2021
On Donnerstag, 2. Dezember 2021 16:50:21 CET John Keeping wrote:
> Use the standard gpiochip request/release resource functions so that any
> GPIOs used as interrupts are properly locked. This allows libgpiod to
> correctly show these GPIOs as in-use.
>
> Signed-off-by: John Keeping <john at metanate.com>
Tested-by: Nicolas Frattaroli <frattaroli.nicolas at gmail.com>
Applied this on my Quartz64 Model A (RK3566) where I currently am
having a play with some SPI devices. Now gpioinfo correctly shows
the interrupt pin as being in use.
Before:
line 3: unnamed unused input active-high
After:
line 3: unnamed "interrupt" input active-high [used]
Regards,
Nicolas Frattaroli
More information about the Linux-rockchip
mailing list