Thread (21 messages) 21 messages, 5 authors, 2023-03-15

Re: [PATCH v1 2/3] Documentation: gpio: Add a section on what to return in ->get() callback

From: Linus Walleij <hidden>
Date: 2022-12-03 09:39:07
Also in: linux-gpio, lkml

On Wed, Nov 30, 2022 at 4:55 PM Andy Shevchenko
[off-list ref] wrote:
+The below table gathered the most used cases.
+
+==========  ==========  ===============  =======================
+  Input       Output         State        What value to return?
+==========  ==========  ===============  =======================
+ Disabled    Disabled    Hi-Z             input buffer
+ Disabled    OS/OD/etc   Single ended     [cached] output buffer
+    x        Push-Pull   Out              [cached] output buffer
+ Enabled     Disabled    In               input buffer
+ Enabled     OS/OD/etc   Bidirectional    input buffer
+==========  ==========  ===============  =======================
This looks about right to me, but we need more input, Kent?

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help