summaryrefslogtreecommitdiff
path: root/sound/arm
diff options
context:
space:
mode:
authorAnup Patel <anup@brainfault.org>2019-02-12 18:22:44 +0530
committerMarc Zyngier <marc.zyngier@arm.com>2019-02-21 10:32:12 +0000
commit3fecb5aac2888814884881317ef139437338d8d0 (patch)
tree90de15601e9eb1b36fbb147aab491f11016c8966 /sound/arm
parent86c7cbf1e8d1d4f4f60e229fdc2a5b21c09c29a3 (diff)
irqchip/sifive-plic: Add warning in plic_init() if handler already present
We have two enteries (one for M-mode and another for S-mode) in the interrupts-extended DT property of PLIC DT node for each HART. It is expected that firmware/bootloader will set M-mode HWIRQ line of each HART to 0xffffffff (i.e. -1) in interrupts-extended DT property because Linux runs in S-mode only. If firmware/bootloader is buggy then it will not correctly update interrupts-extended DT property which might result in a plic_handler configured twice. This patch adds a warning in plic_init() if a plic_handler is already marked present. This warning provides us a hint about incorrectly updated interrupts-extended DT property. Signed-off-by: Anup Patel <anup@brainfault.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'sound/arm')
0 files changed, 0 insertions, 0 deletions