Re: [PATCH] gpio/rockchip: lock GPIOs used as interrupts
From: Nicolas Frattaroli
Date: Thu Dec 02 2021 - 11:46:20 EST
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@xxxxxxxxxxxx>
Tested-by: Nicolas Frattaroli <frattaroli.nicolas@xxxxxxxxx>
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