Re: [PATCH] gpio: Revert regression in sysfs-gpio (gpiolib.c)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 14, 2022 at 12:24 AM Marcelo Roberto Jimenez
<marcelo.jimenez@xxxxxxxxx> wrote:
> On Sat, Feb 12, 2022 at 1:55 PM Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:

> > I am curious about the usecases and how deeply you have built
> > yourselves into this.
>
> I don't know if I understand what you mean, sorry.

Why does the user need the sysfs ABI? What is it used for?

I.e what is the actual use case?

> > > In any case, the upstream file should be enough to test the issue reported here.
> >
> > The thing is that upstream isn't super happy that you have been
> > making yourselves dependent on features that we are actively
> > discouraging and then demanding that we support these features.
>
> Hum, demanding seems to be a strong word for what I am doing here.
>
> Deprecated should not mean broken. My point is: the API seems to be
> currently broken. User space apps got broken, that's a fact. I even
> took the time to bisect the kernel and show you which commit broke it.
> So, no, I am not demanding. More like reporting and providing a
> temporary solution to those with a similar problem.
>
> Maybe it is time to remove the API, but this is up to "upstream".
> Leaving the API broken seems pointless and unproductive.
>
> Sorry for the "not super happiness of upstream", but maybe upstream
> got me wrong.
>
> We are not "making ourselves dependent on features ...". The API was
> there. We used it. Now it is deprecated, ok, we should move on. I got
> the message.

Ouch I deserved some slamming for this.

I'm sorry if I came across as harsh :(

I just don't know how to properly push for this.

I have even pushed the option of the deprecated sysfs ABI
behind the CONFIG_EXPERT option, which should mean that
the kernel config has been made by someone who has checked
the option "yes I am an expert I know what I am doing"
yet failed to observe that this ABI is obsoleted since 5 years
and hence failed to be an expert.

Of course the ABI (not API really) needs to be fixed if we can find the
problem. It's frustrating that fixing it seems to fix broken other
features which are not deprecated, hence the annoyance on my
part.

> And I will also tell the dev team that they must use the GPIO char dev
> and libgpiod from now on and must port everything to it. And we will
> likely have another group of people who are not super happy, but
> that's life... :)

I'm happy to hear this!

Yours,
Linus Walleij



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux