Skip to content

Commit e65df3f

Browse files
AaronDotchenhuacai
authored andcommitted
LoongArch: dts: loongson-2k2000: Add default interrupt controller address cells
Add missing address-cells 0 to the Local I/O, Extend I/O and PCH-PIC Interrupt Controller node to silence W=1 warning: loongson-2k2000.dtsi:364.5-49: Warning (interrupt_map): /bus@10000000/pcie@1a00000/pcie@9,0:interrupt-map: Missing property '#address-cells' in node /bus@10000000/interrupt-controller@10000000, using 0 as fallback Value '0' is correct because: 1. The LIO/EIO/PCH interrupt controller does not have children, 2. interrupt-map property (in PCI node) consists of five components and the fourth component "parent unit address", which size is defined by '#address-cells' of the node pointed to by the interrupt-parent component, is not used (=0) Cc: stable@vger.kernel.org Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 81e8cb7 commit e65df3f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

arch/loongarch/boot/dts/loongson-2k2000.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
reg = <0x0 0x1fe01400 0x0 0x64>;
127127

128128
interrupt-controller;
129+
#address-cells = <0>;
129130
#interrupt-cells = <2>;
130131
interrupt-parent = <&cpuintc>;
131132
interrupts = <2>;
@@ -140,6 +141,7 @@
140141
compatible = "loongson,ls2k2000-eiointc";
141142
reg = <0x0 0x1fe01600 0x0 0xea00>;
142143
interrupt-controller;
144+
#address-cells = <0>;
143145
#interrupt-cells = <1>;
144146
interrupt-parent = <&cpuintc>;
145147
interrupts = <3>;
@@ -149,6 +151,7 @@
149151
compatible = "loongson,pch-pic-1.0";
150152
reg = <0x0 0x10000000 0x0 0x400>;
151153
interrupt-controller;
154+
#address-cells = <0>;
152155
#interrupt-cells = <2>;
153156
loongson,pic-base-vec = <0>;
154157
interrupt-parent = <&eiointc>;

0 commit comments

Comments
 (0)