Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
irqchip/qcom-pdc: Fix broken locking
pdc_enable_intr() serves as a primitive to qcom_pdc_gic_{en,dis}able, and has a raw spinlock for mutual exclusion, which is uses with interruptible primitives. This means that this critical section can itself be interrupted. Should the interrupt also be a PDC interrupt, and the endpoint driver perform an irq_disable() on that interrupt, we end-up in a deadlock. Fix this by using the irqsave/irqrestore variants of the locking primitives. Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Maulik Shah <[email protected]> Link: https://lore.kernel.org/r/[email protected]
- Loading branch information