Skip to content

Commit 81e8cb7

Browse files
AaronDotchenhuacai
authored andcommitted
LoongArch: dts: loongson-2k1000: Add default interrupt controller address cells
Add missing address-cells 0 to the Local I/O interrupt controller node to silence W=1 warning: loongson-2k1000.dtsi:498.5-55: Warning (interrupt_map): /bus@10000000/pcie@1a00000/pcie@9,0:interrupt-map: Missing property '#address-cells' in node /bus@10000000/interrupt-controller@1fe01440, using 0 as fallback Value '0' is correct because: 1. The Local I/O 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 c446175 commit 81e8cb7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<0x0 0x1fe01140 0x0 0x8>;
115115
reg-names = "main", "isr0", "isr1";
116116
interrupt-controller;
117+
#address-cells = <0>;
117118
#interrupt-cells = <2>;
118119
interrupt-parent = <&cpuintc>;
119120
interrupts = <2>;
@@ -131,6 +132,7 @@
131132
<0x0 0x1fe01148 0x0 0x8>;
132133
reg-names = "main", "isr0", "isr1";
133134
interrupt-controller;
135+
#address-cells = <0>;
134136
#interrupt-cells = <2>;
135137
interrupt-parent = <&cpuintc>;
136138
interrupts = <3>;

0 commit comments

Comments
 (0)