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

From: Linus Walleij
Date: Sat Dec 03 2022 - 04:39:07 EST


On Wed, Nov 30, 2022 at 4:55 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> 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