Skip to content

Commit c446175

Browse files
AaronDotchenhuacai
authored andcommitted
LoongArch: dts: loongson-2k0500: Add default interrupt controller address cells
Add missing address-cells 0 to the Local I/O and Extend I/O interrupt controller node to silence W=1 warning: loongson-2k0500.dtsi:513.5-51: Warning (interrupt_map): /bus@10000000/pcie@1a00000/pcie@0,0:interrupt-map: Missing property '#address-cells' in node /bus@10000000/interrupt-controller@1fe11600, using 0 as fallback Value '0' is correct because: 1. The Local I/O & Extend I/O interrupt controller do 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 762cf75 commit c446175

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
reg-names = "main", "isr0";
132132

133133
interrupt-controller;
134+
#address-cells = <0>;
134135
#interrupt-cells = <2>;
135136
interrupt-parent = <&cpuintc>;
136137
interrupts = <2>;
@@ -149,6 +150,7 @@
149150
reg-names = "main", "isr0";
150151

151152
interrupt-controller;
153+
#address-cells = <0>;
152154
#interrupt-cells = <2>;
153155
interrupt-parent = <&cpuintc>;
154156
interrupts = <4>;
@@ -164,6 +166,7 @@
164166
compatible = "loongson,ls2k0500-eiointc";
165167
reg = <0x0 0x1fe11600 0x0 0xea00>;
166168
interrupt-controller;
169+
#address-cells = <0>;
167170
#interrupt-cells = <1>;
168171
interrupt-parent = <&cpuintc>;
169172
interrupts = <3>;

0 commit comments

Comments
 (0)