[PATCH 1/2] Documentation: gpio: virtuser: list the accepted direction values
From: Lin Tzu Yang
Date: Tue Dec 01 2026 - 09:27:18 EST
The direction and direction_atomic debugfs attributes are documented
as accepting "input" and "output". Writing "output" fails with
-EINVAL: the driver accepts "input", "output-high" and "output-low",
and reads the direction back as "input" or "output".
Document the values the driver actually takes.
Fixes: 91581c4b3f29 ("gpio: virtuser: new virtual testing driver for the GPIO API")
Signed-off-by: Lin Tzu Yang <rongh7426@xxxxxxxxx>
---
Documentation/admin-guide/gpio/gpio-virtuser.rst | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Documentation/admin-guide/gpio/gpio-virtuser.rst b/Documentation/admin-guide/gpio/gpio-virtuser.rst
index 7e7c0df516..236e9d5f54 100644
--- a/Documentation/admin-guide/gpio/gpio-virtuser.rst
+++ b/Documentation/admin-guide/gpio/gpio-virtuser.rst
@@ -159,8 +159,9 @@ Allows to set and read the debounce period of the GPIO line.
**Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo:$index/direction_atomic``
These two attributes allow to set the direction of the GPIO line. They accept
-"input" and "output" as values. The atomic variant executes the driver callback
-in interrupt context.
+"input", "output-high" and "output-low" as values, and read back as
+"input" or "output". The atomic variant executes the driver callback in
+interrupt context.
**Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo:$index/interrupts``
--
2.47.3