[PATCH v2] cmd: gpio: Add `gpio read` subcommand

2022-04-11 Thread Diego Rondini
As explained in commit 4af2a33ee5b9 ("cmd: gpio: Make `gpio input` return pin value again") the `gpio input` is used in scripts to obtain the value of a pin, despite the fact that CMD_RET_FAILURE is indistinguishable from a valid pin value. To be able to detect failures and properly use the value o

Re: [PATCH v2] cmd: gpio: Add `gpio read` subcommand

2022-04-20 Thread Tom Rini
On Mon, Apr 11, 2022 at 12:02:09PM +0200, Diego Rondini wrote: > As explained in commit 4af2a33ee5b9 ("cmd: gpio: Make `gpio input` > return pin value again") the `gpio input` is used in scripts to obtain > the value of a pin, despite the fact that CMD_RET_FAILURE is > indistinguishable from a val