Re: [PATCH] i2c: imx: Fix external abort on early interrupt

From: Marc Kleine-Budde
Date: Fri Jun 12 2020 - 08:18:23 EST


On 6/12/20 1:51 PM, Wolfram Sang wrote:
>
>> This basically kills the concept of devm for interrupts. Some other
>
> It only works when you can ensure you have all interrupts disabled (and
> none pending) in remove() or the error paths of probe() etc.

But when requesting the interrupt as shared the interrupt handler can get called
any time, even if you have disabled the IRQ source in your IP core....The shared
IRQ debug code tests this.

Marc

--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |