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

From: Andy Shevchenko
Date: Mon Jun 28 2021 - 09:43:09 EST


On Mon, Jun 28, 2021 at 4:40 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> On Mon, Jun 28, 2021 at 6:37 AM Vincent Pelletier <plr.vincent@xxxxxxxxx> wrote:

> > While trying to debug an IRQ handling issue on a sifive-unmatched board
> > (which is a very recent board on a recent architecture, so I would not
> > be overly surprised if there were bugs in hiding), I realised that I was able
> > to claim via sysfs GPIO pins which are being actively used as IRQ sources.

And one important note: do NOT use sysfs GPIO interface. Use a GPIO
character device instead.

--
With Best Regards,
Andy Shevchenko