* [PATCH] Documentation: gpio: consistent use of logical line value terminology
@ 2024-02-13 14:12 Kent Gibson
2024-02-13 14:19 ` Andy Shevchenko
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Kent Gibson @ 2024-02-13 14:12 UTC (permalink / raw)
To: linux-kernel, linux-gpio, linux-doc, brgl, linus.walleij, andy, corbet
Cc: Kent Gibson
Consistently use active/inactive to describe logical line values, rather
than high/low, which is used for physical values, or asserted/de-asserted
which is awkward.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
---
Documentation/driver-api/gpio/consumer.rst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Documentation/driver-api/gpio/consumer.rst b/Documentation/driver-api/gpio/consumer.rst
index 3e588b9d678c..ab56ab0dd7a6 100644
--- a/Documentation/driver-api/gpio/consumer.rst
+++ b/Documentation/driver-api/gpio/consumer.rst
@@ -222,9 +222,9 @@ Use the following calls to access GPIOs from an atomic context::
int gpiod_get_value(const struct gpio_desc *desc);
void gpiod_set_value(struct gpio_desc *desc, int value);
-The values are boolean, zero for low, nonzero for high. When reading the value
-of an output pin, the value returned should be what's seen on the pin. That
-won't always match the specified output value, because of issues including
+The values are boolean, zero for inactive, nonzero for active. When reading the
+value of an output pin, the value returned should be what's seen on the pin.
+That won't always match the specified output value, because of issues including
open-drain signaling and output latencies.
The get/set calls do not return errors because "invalid GPIO" should have been
@@ -277,11 +277,11 @@ switch their output to a high impedance value. The consumer should not need to
care. (For details read about open drain in driver.rst.)
With this, all the gpiod_set_(array)_value_xxx() functions interpret the
-parameter "value" as "asserted" ("1") or "de-asserted" ("0"). The physical line
+parameter "value" as "active" ("1") or "inactive" ("0"). The physical line
level will be driven accordingly.
As an example, if the active low property for a dedicated GPIO is set, and the
-gpiod_set_(array)_value_xxx() passes "asserted" ("1"), the physical line level
+gpiod_set_(array)_value_xxx() passes "active" ("1"), the physical line level
will be driven low.
To summarize::
--
2.39.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation: gpio: consistent use of logical line value terminology
2024-02-13 14:12 [PATCH] Documentation: gpio: consistent use of logical line value terminology Kent Gibson
@ 2024-02-13 14:19 ` Andy Shevchenko
2024-02-13 21:40 ` Linus Walleij
2024-02-14 9:35 ` Bartosz Golaszewski
2 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2024-02-13 14:19 UTC (permalink / raw)
To: Kent Gibson
Cc: linux-kernel, linux-gpio, linux-doc, brgl, linus.walleij, andy, corbet
On Tue, Feb 13, 2024 at 4:12 PM Kent Gibson <warthog618@gmail.com> wrote:
>
> Consistently use active/inactive to describe logical line values, rather
> than high/low, which is used for physical values, or asserted/de-asserted
> which is awkward.
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Thanks!
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation: gpio: consistent use of logical line value terminology
2024-02-13 14:12 [PATCH] Documentation: gpio: consistent use of logical line value terminology Kent Gibson
2024-02-13 14:19 ` Andy Shevchenko
@ 2024-02-13 21:40 ` Linus Walleij
2024-02-14 9:35 ` Bartosz Golaszewski
2 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2024-02-13 21:40 UTC (permalink / raw)
To: Kent Gibson; +Cc: linux-kernel, linux-gpio, linux-doc, brgl, andy, corbet
On Tue, Feb 13, 2024 at 3:12 PM Kent Gibson <warthog618@gmail.com> wrote:
> Consistently use active/inactive to describe logical line values, rather
> than high/low, which is used for physical values, or asserted/de-asserted
> which is awkward.
>
> Signed-off-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation: gpio: consistent use of logical line value terminology
2024-02-13 14:12 [PATCH] Documentation: gpio: consistent use of logical line value terminology Kent Gibson
2024-02-13 14:19 ` Andy Shevchenko
2024-02-13 21:40 ` Linus Walleij
@ 2024-02-14 9:35 ` Bartosz Golaszewski
2 siblings, 0 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2024-02-14 9:35 UTC (permalink / raw)
To: Kent Gibson
Cc: linux-kernel, linux-gpio, linux-doc, linus.walleij, andy, corbet
On Tue, Feb 13, 2024 at 3:12 PM Kent Gibson <warthog618@gmail.com> wrote:
>
> Consistently use active/inactive to describe logical line values, rather
> than high/low, which is used for physical values, or asserted/de-asserted
> which is awkward.
>
> Signed-off-by: Kent Gibson <warthog618@gmail.com>
> ---
Applied, thanks!
Bart
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-14 9:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-13 14:12 [PATCH] Documentation: gpio: consistent use of logical line value terminology Kent Gibson
2024-02-13 14:19 ` Andy Shevchenko
2024-02-13 21:40 ` Linus Walleij
2024-02-14 9:35 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®