Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bdf5d1bd authored by Lina Iyer's avatar Lina Iyer
Browse files

driver: irqchip: pdc: Do not toggle IRQ_ENABLE during mask/unmask



When an interrupt is to be serviced, the convention is to mask the
interrupt at the chip and unmask after servicing the interrupt. Enabling
and disabling the interrupt at the PDC irqchip causes an interrupt storm
due to the way dual edge interrupts are handled in hardware.

Skip configuring the PDC when the IRQ is masked and unmasked, instead
use the irq_enable/irq_disable callbacks to toggle the IRQ_ENABLE
register at the PDC. The PDC's IRQ_ENABLE register is only used during
the monitoring mode when the system is asleep and is not needed for
active mode detection.

Change-Id: Ibfa7b3eac4a9bba472004de039018da5624629dc
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 0da1adc5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment