[PATCH] drm/rockchip: Set IRQ_NOAUTOEN flag before requesting the interrupt
Marc Zyngier
marc.zyngier at arm.com
Tue Feb 20 05:11:08 PST 2018
On 10/02/18 14:20, Marc Zyngier wrote:
> Calling request_irq() followed by disable_irq() is usually a bad idea,
> specially if the interrupt can be pending, and you're not yet in a
> position to handle it.
>
> This is exactly what happens on my kevin system when rebooting in a
> second kernel using kexec: Some interrupt is left pending from
> the previous kernel, and we take it too early, before disable_irq()
> could do anything.
>
> A better way of ensuring safety is to set the IRQ_NOAUTOEN flag
> on the irq before requesting it.
>
> Cc: stable at vger.kernel.org
> Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>
For the record, I've posted a (much) improved version of this as part of
a series here[1].
Thanks,
M.
[1]
http://lists.infradead.org/pipermail/linux-arm-kernel/2018-February/560703.html
--
Jazz is not dead. It just smells funny...
More information about the Linux-rockchip
mailing list