Skip to content

Commit 6a9c150

Browse files
warthog618Bartosz Golaszewski
authored andcommitted
Documentation: gpio: Reconfiguration with unset direction (uAPI v2)
Update description of reconfiguration rules, adding requirement that a direction flag be set to enable changing configuration for a line. Signed-off-by: Kent Gibson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent e48fe75 commit 6a9c150

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Documentation/userspace-api/gpio/gpio-v2-line-set-config-ioctl.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ Description
3535
Update the configuration of previously requested lines, without releasing the
3636
line or introducing potential glitches.
3737

38-
The new configuration must specify the configuration of all requested lines.
38+
The new configuration must specify a configuration for all requested lines.
3939

4040
The same :ref:`gpio-v2-get-line-config-rules` and
4141
:ref:`gpio-v2-get-line-config-support` that apply when requesting the lines
42-
also apply when updating the line configuration.
42+
also apply when updating the line configuration, with the additional
43+
restriction that a direction flag must be set to enable reconfiguration.
44+
If no direction flag is set in the configuration for a given line then the
45+
configuration for that line is left unchanged.
4346

4447
The motivating use case for this command is changing direction of
4548
bi-directional lines between input and output, but it may also be used to

0 commit comments

Comments
 (0)