aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-03-21 16:49:38 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-03-24 10:35:10 +0100
commitaf54a2fbdf45b1fd32cdcab916f422e6d097f430 (patch)
treedee3931fd10910ae13f82ac00da48b497cbfe3c7
parentgpio: TODO: add an item to track the conversion to the new value setters (diff)
downloadwireguard-linux-af54a2fbdf45b1fd32cdcab916f422e6d097f430.tar.xz
wireguard-linux-af54a2fbdf45b1fd32cdcab916f422e6d097f430.zip
gpio: TODO: add an item to track reworking the sysfs interface
It seems there really exists the need for a simple sysfs interface that can be easily used from minimal initramfs images that don't contain much more than busybox. However the current interface poses a challenge to the removal of global GPIO numberspace. Add an item that tracks extending the existing ABI with a per-chip export/unexport attribute pair. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20250321-gpio-todo-updates-v1-6-7b38f07110ee@linaro.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
-rw-r--r--drivers/gpio/TODO13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpio/TODO b/drivers/gpio/TODO
index 3abf4805335f..b5f0a7a2e1bf 100644
--- a/drivers/gpio/TODO
+++ b/drivers/gpio/TODO
@@ -173,3 +173,16 @@ value back to the caller.
We've now added new variants - set_rv() and set_multiple_rv() that return an
integer. Let's convert all GPIO drivers treewide to use the new callbacks,
remove the old ones and finally rename the new ones back to the old names.
+
+-------------------------------------------------------------------------------
+
+Extend the sysfs ABI to allow exporting lines by their HW offsets
+
+The need to support the sysfs GPIO class is one of the main obstacles to
+removing the global GPIO numberspace from the kernel. In order to wean users
+off using global numbers from user-space, extend the existing interface with
+new per-gpiochip export/unexport attributes that allow to refer to GPIOs using
+their hardware offsets within the chip.
+
+Encourage users to switch to using them and eventually remove the existing
+global export/unexport attribues.