[PATCH] irqchip: gic: Allow interrupt level to be set for PPIs.

From
Marc Zyngier <hidden>
Date
2014-12-01 11:31:15
Also in
linux-devicetree, lkml
Reply to
Russell King - ARM Linux, 2014-12-01
On 01/12/14 11:23, Russell King - ARM Linux wrote:
On Mon, Dec 01, 2014 at 11:19:41AM +0000, Marc Zyngier wrote:
quoted
Hi Russell,

On 01/12/14 11:03, Russell King - ARM Linux wrote:
quoted
If all you want to do is to bypass the following check, what's wrong
with actually doing that:

-	if (type != IRQ_TYPE_LEVEL_HIGH && type != IRQ_TYPE_EDGE_RISING)
+	if (gicirq >= 32 && type != IRQ_TYPE_LEVEL_HIGH &&
+	    type != IRQ_TYPE_EDGE_RISING)
		return -EINVAL;
I think that will require some additional changes to gic_configure_irq
(in irq-gic-common.c).
I don't think so - gic_configure_irq() will treat it as a no-op as far
as trying to configure the IRQ settings.
I agree. But that's following ARM's tradition of making PPIs
non-configurable. I seem to remember that there is at least one
occurrence of a GIC with configurable PPIs (Qualcomm, IIRC).

With this use case in mind, Liviu's patch allows an active-low interrupt
to be correctly configured as level, for example.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...
Thread (10 messages) 10 messages, 3 authors, last reply 2014-12-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help