Re: [PATCH RFC v2 4/5] selftest: gpio: Add wait flag to gpio-mockup-cdev

From: Linus Walleij
Date: Mon Oct 28 2024 - 10:36:59 EST


On Fri, Oct 25, 2024 at 9:46 PM Nícolas F. R. A. Prado
<nfraprado@xxxxxxxxxxxxx> wrote:


> Add a -w flag to the gpio-mockup-cdev utility that causes the program to
> wait until a signal is received before exiting, even when its behavior
> is to retrieve the GPIO value of the line. This allows using this
> utility to keep a GPIO line configured even when in input mode, which
> will be relied on in other tests.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@xxxxxxxxxxxxx>

Bartosz has to look at this patch!

But overall the idea looks sound to me.

Yours,
Linus Walleij