From: Lin Tzu Yang <rongh7426@gmail.com>
To: Linus Walleij <linusw@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
Shuah Khan <shuah@kernel.org>
Cc: Bamvor Jian Zhang <bamv2005@gmail.com>,
Jonathan Corbet <corbet@lwn.net>,
linux-gpio@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] Documentation: gpio: virtuser: list the accepted direction values
Date: Tue, 1 Dec 2026 22:27:02 +0800 [thread overview]
Message-ID: <20261201142703.900902-2-rongh7426@gmail.com> (raw)
In-Reply-To: <20261201142703.900902-1-rongh7426@gmail.com>
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@gmail.com>
---
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
next prev parent reply other threads:[~2026-12-01 14:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 14:27 [PATCH 0/2] gpio: virtuser: add a selftest Lin Tzu Yang
2026-12-01 14:27 ` Lin Tzu Yang [this message]
2026-12-01 14:27 ` [PATCH 2/2] selftests: gpio: add a test for gpio-virtuser Lin Tzu Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201142703.900902-2-rongh7426@gmail.com \
--to=rongh7426@gmail.com \
--cc=bamv2005@gmail.com \
--cc=brgl@kernel.org \
--cc=corbet@lwn.net \
--cc=linusw@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox