Re: Linux logs new warning `gpio gpiochip0: gpiochip_add_data_with_key: get_direction failed: -22`

From: Bartosz Golaszewski
Date: Sun Feb 23 2025 - 15:55:21 EST


On Fri, Feb 21, 2025 at 10:02 PM Paul Menzel <pmenzel@xxxxxxxxxxxxx> wrote:
>
> > What GPIO driver is it using? It's likely that it's not using the
> > provider API correctly and this change uncovered it, I'd like to take
> > a look at it and fix it.
>
> How do I find out? The commands below do not return anything.
>
> $ lsmod | grep gpio
> $ lspci -nn | grep -i gpio
> $ sudo dmesg | grep gpio
> [ 5.150955] gpio gpiochip0: gpiochip_add_data_with_key:
> get_direction failed: -22
> [Just these lines match.]
>
>
> Kind regards,
>
> Paul

If you have libgpiod-tools installed, you can post the output of
gpiodetect here.

Bart