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

From: Paul Menzel
Date: Fri Mar 14 2025 - 08:27:40 EST


Dear Bartosz,


Am 14.03.25 um 13:19 schrieb Bartosz Golaszewski:
On Fri, Mar 14, 2025 at 12:54 PM Paul Menzel <pmenzel@xxxxxxxxxxxxx> wrote:

Brief looking at the error descriptions and the practical use the best (and
unique enough) choice may be EBADSLT.

In any case, I proposed to revert to the previous behavior in
gpiochip_add_data() in my follow-up series so the issue should soon go
away.

Yes, I noted. The above is a material to discuss. We can make that semantics
documented and strict and then one may filter out those errors if/when
required.

I am still seeing this with 6.14.0-rc6-00022-gb7f94fcf5546. Do you know,
if the reverts are going to be in the final 6.14 release?

linux-next should probably be a better point of reference. I'm about
to send out my PR to Linus so it'll be in 6.14-rc7 alright.

Awesome. Thank you!


Kind regards,

Paul