Re: gpiochip_lock_as_irq on pins without FLAG_REQUESTED: bug or feature ?

From: Linus Walleij
Date: Fri Jul 02 2021 - 17:46:32 EST


On Fri, Jul 2, 2021 at 12:48 PM Vincent Pelletier <plr.vincent@xxxxxxxxx> wrote:

> gpiochip_lock_as_irq,
(...)
> Actually my question came from yet another misunderstanding on my side:
> I expected this function to act as an exclusive access control (because
> of the "lock" in the name), but I then realised my assumption is wrong.

Well it locks its use to be compliant with being used for IRQ.
So it cannot be turned into an output for example. While reading
its value as input is fine.

Yours,
Linus Walleij