linux_dsm_epyc7002/arch/mips/boot/dts
Paul Burton fbdc674ba3 MIPS: SEAD-3: Set interrupt-parent per-device, not at root node
The SEAD-3 board may be configured with or without a MIPS Global
Interrupt Controller (GIC). Because of this we have a device tree with a
default case of a GIC present, and code to fixup the device tree based
upon a configuration register that indicates the presence of the GIC.

In order to keep this DT fixup code simple, the interrupt-parent
property was specified at the root node of the SEAD-3 DT, allowing the
fixup code to simply change this property to the phandle of the CPU
interrupt controller if a GIC is not present & affect all
interrupt-using devices at once. This however causes a problem if we do
have a GIC & the device tree is used as-is, because the interrupt-parent
property of the root node applies to the CPU interrupt controller node.
This causes a cycle when of_irq_init() attempts to probe interrupt
controllers in order and boots fail due to a lack of configured
interrupts, with this message printed on the kernel console:

[    0.000000] OF: of_irq_init: children remain, but no parents

Fix this by removing the interrupt-parent property from the DT root node
& instead setting it for each device which uses interrupts, ensuring
that the CPU interrupt controller node has no interrupt-parent &
allowing of_irq_init() to identify it as the root interrupt controller.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reported-by: Keng Koh <keng.koh@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16187/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-06-28 12:22:41 +02:00
..
brcm MIPS: BMIPS: Add support SPI device nodes 2017-01-24 18:30:34 +01:00
cavium-octeon MIPS: Octeon: Add DTS for D-Link DSR-500N. 2016-10-04 16:13:57 +02:00
img MIPS: DTS: img: add device tree for Marduk board 2017-01-03 16:34:41 +01:00
ingenic MIPS: qi_lb60: Probe RTC driver from DT and use it as power controller 2016-11-05 00:02:01 +01:00
lantiq pinctrl/lantiq: update devicetree binding in dts file 2016-05-13 14:01:59 +02:00
mti MIPS: SEAD-3: Set interrupt-parent per-device, not at root node 2017-06-28 12:22:41 +02:00
netlogic MIPS: Netlogic: add device tree entry for XLP GPIO 2015-09-03 12:08:03 +02:00
pic32 MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding 2016-05-13 15:30:25 +02:00
qca MIPS: ath79: add initial support for DPT-Module 2016-05-13 14:01:47 +02:00
ralink MIPS: devicetree: fix cpu interrupt controller node-names 2016-05-28 12:35:12 +02:00
xilfpga MIPS: xilfpga: Add DT node for AXI emaclite 2017-01-03 16:34:40 +01:00
Makefile MIPS: DTS: Add img directory to Makefile 2017-02-17 11:16:46 +00:00