aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Gibson <[email protected]>2024-06-26 13:29:24 +0800
committerBartosz Golaszewski <[email protected]>2024-07-01 09:38:45 +0200
commite48fe75afa539d110753f7420aa398ef89f8e383 (patch)
tree057c1911664ce34c7ff6e6eec054163c019a92a5
parent3550b5db3af4d0ff7f2ad07367af6427534620f0 (diff)
Documentation: gpio: Reconfiguration with unset direction (uAPI v1)
Update description of reconfiguration rules, adding requirement that a direction flag be set or the configuration is considered invalid. Signed-off-by: Kent Gibson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
-rw-r--r--Documentation/userspace-api/gpio/gpio-handle-set-config-ioctl.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/userspace-api/gpio/gpio-handle-set-config-ioctl.rst b/Documentation/userspace-api/gpio/gpio-handle-set-config-ioctl.rst
index d002a84681ac..a03f30db63ab 100644
--- a/Documentation/userspace-api/gpio/gpio-handle-set-config-ioctl.rst
+++ b/Documentation/userspace-api/gpio/gpio-handle-set-config-ioctl.rst
@@ -43,7 +43,10 @@ The configuration applies to all requested lines.
The same :ref:`gpio-get-linehandle-config-rules` and
:ref:`gpio-get-linehandle-config-support` that apply when requesting the
-lines also apply when updating the line configuration.
+lines also apply when updating the line configuration, with the additional
+restriction that a direction flag must be set. Requesting an invalid
+configuration, including without a direction flag set, is an error
+(**EINVAL**).
The motivating use case for this command is changing direction of
bi-directional lines between input and output, but it may be used more