Re: [PATCH] gpio: Do not trigger WARN() with sysfs gpio export/unexport

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

 



On Fri, Nov 6, 2020 at 10:27 AM Bartosz Golaszewski
<bgolaszewski@xxxxxxxxxxxx> wrote:

> How about we change that to an unconditional WARN() everytime the user
> tries to export a GPIO over sysfs so that people switch over to the
> character device?
>
> I'm joking a bit but I think it's time to start discouraging people
> from using sysfs and a warning may be a good start.

I think maybe we should hide the Kconfig for sysfs under
EXPERT as well.

I would also seriously don't mind to make CDEV compulsory
for GPIO_SYSFS.

GPIO_SYSFS
   depends on EXPERT
   select GPIO_CDEV

If people to bad only want the deprecated sysfs they can patch
their kernel to get rid of it :/

I will send a patch for this.

Yours,
Linus Walleij



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux