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

Commit 1556f95b authored by Lina Iyer's avatar Lina Iyer
Browse files

drivers: irqchip: pdc: setup all edge interrupts as rising edge at GIC



The PDC irqchp can convert a falling edge or level low interrupt to a
rising edge or level high interrupt at the GIC. We just need to setup
the GIC correctly. Set up the interrupt type for the IRQ_TYPE_EDGE_BOTH
as IRQ_TYPE_EDGE_RISING at the GIC.

Change-Id: Ia1852d24072ef8d0c932fa9383e9c877766a386a
Reported-by: default avatarEvan Green <evgreen@chromium.org>
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent efa1f66f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@ static int qcom_pdc_gic_set_type(struct irq_data *d, unsigned int type)
		break;
	case IRQ_TYPE_EDGE_BOTH:
		pdc_type = PDC_EDGE_DUAL;
		type = IRQ_TYPE_EDGE_RISING;
		break;
	case IRQ_TYPE_LEVEL_HIGH:
		pdc_type = PDC_LEVEL_HIGH;