[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdbnujCU1H6VmpyZ7p6bMFG0s8PzT-O4GetLUXA21N63qg@mail.gmail.com>
Date: Fri, 2 Jul 2021 23:46:16 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Vincent Pelletier <plr.vincent@...il.com>
Cc: Bartosz Golaszewski <bgolaszewski@...libre.com>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: gpiochip_lock_as_irq on pins without FLAG_REQUESTED: bug or
feature ?
On Fri, Jul 2, 2021 at 12:48 PM Vincent Pelletier <plr.vincent@...il.com> 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
Powered by blists - more mailing lists