Re: [PATCH v2 0/4] gpio: fix SRCU bugs

From: Linus Walleij
Date: Wed Feb 21 2024 - 16:46:47 EST


On Wed, Feb 14, 2024 at 8:08 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:

> Unfortunately, it's hard to fix 15 years of technical debt. :(

If it's any consolation I didn't create this one technical debt on purpose.

The actual mistake creating it goes something like: /dev/gpiochipN files are
nice and we can clean up after a file handle is closed or terminated,
I wonder why people insist on using sysfs for so many things.

All the file semantics of handles going away by being used etc, that's
why sysfs is good. I was too inexperienced to understand that, or I would
have paid more attention...

Yet I think we ended up in a reasonable place.

Yours,
Linus Walleij