Re: [PATCH v4] tty: serial: jsm: allocate queue buffer at probe time

From: Andy Shevchenko
Date: Wed Jul 07 2021 - 08:52:50 EST


On Wed, Jul 7, 2021 at 10:50 AM Jiri Slaby <jirislaby@xxxxxxxxxx> wrote:
> On 05. 07. 21, 14:53, Zheyu Ma wrote:

> So how it comes an interrupt came before
> neo_param() in jsm_tty_open was called?

If IRQ is shared we have a special debug feature to test shared IRQs
on freeing IRQ stage (*).
But it doesn't matter, the IRQ handler must survive at any stage after
the action has been listed.

*) I believe we have quite a lot of drivers that will fail that test...

--
With Best Regards,
Andy Shevchenko