[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMRc=Mc6ZSp+bu3i0-X-i_8=f69X0Rez98tGsS-g_uJ1nBH6fQ@mail.gmail.com>
Date: Wed, 18 Jun 2025 17:56:37 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Jan Lübbe <jlu@...gutronix.de>
Cc: Ahmad Fatoum <a.fatoum@...gutronix.de>, Kent Gibson <warthog618@...il.com>,
Marek Vasut <marex@...x.de>, Geert Uytterhoeven <geert+renesas@...der.be>,
Linus Walleij <linus.walleij@...aro.org>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH RFC/RFT 00/15] gpio: sysfs: add a per-chip export/unexport
attribute pair
On Wed, Jun 18, 2025 at 3:38 PM Jan Lübbe <jlu@...gutronix.de> wrote:
>
[snip]
> The contents of /sys/kernel/debug/gpio don't really fit any more:
> gpiochip10: GPIOs 660-663, parent: i2c/0-0024, pca9570, can sleep:
> gpio-660 (DUT_PWR_EN |tacd ) out hi
> gpio-661 (DUT_PWR_DISCH |tacd ) out lo
> gpio-662 (DUT_PWR_ADCRST |reset ) out lo
> The header is inconsistent: it uses the 'gpiochip' prefix, but not the base as
> the old class devices in /sys/class/gpio/. Perhaps something like this?
> chip10: GPIOs 0-2 (global IDs 660-663), parent: i2c/0-0024, pca9570, can sleep:
> gpio-0 (660) (DUT_PWR_EN |tacd ) out hi
> gpio-1 (661) (DUT_PWR_DISCH |tacd ) out lo
> gpio-2 (662) (DUT_PWR_ADCRST |reset ) out lo
> If GPIO_SYSFS_LEGACY is disabled, the global IDs could be hidden.
>
After a second look: IMO this is unrelated to the sysfs changes. We
definitely should change the debugfs output and rid it off the global
numbers but it shouldn't be part of this series. Also: are you using
this output in some way? Technically debugfs output is not stable ABI
so we can modify it without considering existing users but wanted to
run it by you to know if I'm going to break something for you.
Bart
Powered by blists - more mailing lists