summaryrefslogtreecommitdiff
path: root/Documentation/userspace-api/gpio/gpio-get-lineevent-ioctl.rst
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2024-01-23 21:38:28 +0800
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-01-25 09:42:25 +0100
commit42969726a19f796f0e731ec74347fd8a0e4e91a2 (patch)
tree1765cae3feb5d2b52c780389d26ed39f027e60ee /Documentation/userspace-api/gpio/gpio-get-lineevent-ioctl.rst
parent3473765920eaa4e7d71a0e4869937d2117bb0398 (diff)
Documentation: gpio: describe uAPI behaviour for unsupported config
The existing uAPI documentation does not adequately describe how the kernel handles the case where the underlying hardware or driver does not support the requested configuration. Add a Configuration Support section describing that behaviour to both the v1 and v2 documentation, and better document the errors returned where the requested configuration cannot be supported. Signed-off-by: Kent Gibson <warthog618@gmail.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'Documentation/userspace-api/gpio/gpio-get-lineevent-ioctl.rst')
-rw-r--r--Documentation/userspace-api/gpio/gpio-get-lineevent-ioctl.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/userspace-api/gpio/gpio-get-lineevent-ioctl.rst b/Documentation/userspace-api/gpio/gpio-get-lineevent-ioctl.rst
index 7d0b932925c6..09a9254f38cf 100644
--- a/Documentation/userspace-api/gpio/gpio-get-lineevent-ioctl.rst
+++ b/Documentation/userspace-api/gpio/gpio-get-lineevent-ioctl.rst
@@ -48,6 +48,12 @@ to its default state.
Requesting a line already in use is an error (**EBUSY**).
+Requesting edge detection on a line that does not support interrupts is an
+error (**ENXIO**).
+
+As with the :ref:`line handle<gpio-get-linehandle-config-support>`, the
+bias configuration is best effort.
+
Closing the ``chip_fd`` has no effect on existing line events.
Configuration Rules