linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqchip: Skip contexts other supervisor in plic_init()
@ 2019-10-23 16:22 Alan Mikhak
  2019-10-23 18:54 ` Paul Walmsley
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Mikhak @ 2019-10-23 16:22 UTC (permalink / raw)
  To: linux-kernel, linux-riscv, tglx, jason, maz, palmer, paul.walmsley
  Cc: Alan Mikhak

From: Alan Mikhak <alan.mikhak@sifive.com>

Modify plic_init() to skip .dts interrupt contexts other
than supervisor external interrupt.

Signed-off-by: Alan Mikhak <alan.mikhak@sifive.com>
---
 drivers/irqchip/irq-sifive-plic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c
index c72c036aea76..5f2a773d5669 100644
--- a/drivers/irqchip/irq-sifive-plic.c
+++ b/drivers/irqchip/irq-sifive-plic.c
@@ -251,8 +251,8 @@ static int __init plic_init(struct device_node *node,
 			continue;
 		}
 
-		/* skip context holes */
-		if (parent.args[0] == -1)
+		/* skip contexts other than supervisor external interrupt */
+		if (parent.args[0] != IRQ_S_EXT)
 			continue;
 
 		hartid = plic_find_hart_id(parent.np);
-- 
2.7.4


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-10-24  7:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23 16:22 [PATCH] irqchip: Skip contexts other supervisor in plic_init() Alan Mikhak
2019-10-23 18:54 ` Paul Walmsley
2019-10-23 21:34   ` Alan Mikhak
2019-10-24  2:21     ` Paul Walmsley
2019-10-23 22:07   ` Palmer Dabbelt
2019-10-24  1:30     ` Christoph Hellwig
2019-10-24  6:51       ` Marc Zyngier
2019-10-24  7:03         ` Christoph Hellwig
2019-10-24  7:27           ` Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).