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 Wed, Nov 11, 2020 at 7:54 AM Damien Le Moal <Damien.LeMoal@xxxxxxx> wrote:

> > We need to think about a similar facility for users which is less
> > damaging but fulfils the same needs. I think I saw something a while
> > back that looked promising and added some funky files in debugfs
> > in a hierarchical manner per-gpiochip instead. That is how debugfs
> > should be used.
>
> I like this idea too. The point is (my opinion only), anything that allows
> quick testing using only a shell without any extra tooling needed is fine.
> Extra tooling is not really an issue when using a full distro, but it can be a
> problem when working with things like buildroot (or busybox directly). And
> indeed, as its name implies, debugfs seems like a good alternative to sysfs.

I would say the problem is something like, I want to test some simple
GPIO access like turning a LED on/off and recompiling the rootfs
is a pain, so some simple debugfs facility would be nice to have to test
it and get on with development.

OK I'll think of some TODO item.

I am slightly worried that people will start abusing debugfs to do products
"because it is so simple" if we add this but wel...

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