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

Commit 2d494074 authored by Maulik Shah's avatar Maulik Shah Committed by Todd Kjos
Browse files

FROMLIST: genirq: Introduce irq_chip_get/set_parent_state calls



On certain QTI chipsets some GPIOs are direct-connect interrupts to the
GIC to be used as regular interrupt lines. When the GPIOs are not used
for interrupt generation the interrupt line is disabled. But disabling
the interrupt at GIC does not prevent the interrupt to be reported as
pending at GIC_ISPEND. Later, when drivers call enable_irq() on the
interrupt, an unwanted interrupt occurs.

Introduce get and set methods for irqchip's parent to clear it's pending
irq state. This then can be invoked by the GPIO interrupt controller on
the parents in it hierarchy to clear the interrupt before enabling the
interrupt.

Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
[updated commit text and minor code fixes]
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>

BUG: 141169320
TEST: Build and boot

Change-Id: I8c849f89bebca892fc8a5c94f1ca9492f2a9d49c
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
Link: https://patchwork.kernel.org/patch/11145351
parent 97b1fe8e
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