Skip to contentSkip to conversation

ARM: dts: bcm4709: fix bus range assignment

PATCH Superseded Arnd Bergmann 2 participants 2 messages Apr 13

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: bcm4709: fix bus range assignment

From: Arnd Bergmann <[email protected]>

The netgear r8000 dts file limits the bus range for the first host bridge to exclude bus 0, but the two devices on the first bus are explicitly assigned to bus 0, causing a build time warning:

/home/arnd/arm-soc/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts:142.3-27: Warning (pci_device_bus_num): /axi@18000000/pcie@13000/pcie@0/pcie@0,0/pcie@1,0:bus-range: PCI bus number 0 out of range, expected (1 - 255) /home/arnd/arm-soc/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts:142.3-27: Warning (pci_device_bus_num): /axi@18000000/pcie@13000/pcie@0/pcie@0,0/pcie@2,0:bus-range: PCI bus number 0 out of range, expected (1 - 255)

I could not find any reason why this is done in the first place, but this can be easily addressed by reassigning the two devices to bus 1, or by dropping the bus-range property in order to allow secondary bus 0 to be assigned.

Assuming the bus-range is intentional, fix this by moving the devices to the first valid secondary bus number.

Fixes 893faf67438c ("ARM: dts: BCM5301X: add root pcie bridges")
---
 arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts +2 -2
index d170c71cbd76..355be5014943 100644
@@ -147,7 +147,7 @@ pcie@0,0 {
 
 		pcie@1,0 {
 			device_type = "pci";
-			reg = <0x800 0 0 0 0>;
+			reg = <0x10800 0 0 0 0>;
 
 			#address-cells = <3>;
 			#size-cells = <2>;
@@ -162,7 +162,7 @@ wifi@0,0 {
 
 		pcie@2,0 {
 			device_type = "pci";
-			reg = <0x1000 0 0 0 0>;
+			reg = <0x11000 0 0 0 0>;
 
 			#address-cells = <3>;
 			#size-cells = <2>;
Signature · 1 line
2.39.5
#1 lore raw
Quoted 10 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The netgear r8000 dts file limits the bus range for the first host bridge to exclude bus 0, but the two devices on the first bus are explicitly assigned to bus 0, causing a build time warning:

/home/arnd/arm-soc/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts:142.3-27: Warning (pci_device_bus_num): /axi@18000000/pcie@13000/pcie@0/pcie@0,0/pcie@1,0:bus-range: PCI bus number 0 out of range, expected (1 - 255) /home/arnd/arm-soc/arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts:142.3-27: Warning (pci_device_bus_num): /axi@18000000/pcie@13000/pcie@0/pcie@0,0/pcie@2,0:bus-range: PCI bus number 0 out of range, expected (1 - 255)

Quoted 7 lines

I could not find any reason why this is done in the first place, but this can be easily addressed by reassigning the two devices to bus 1, or by dropping the bus-range property in order to allow secondary bus 0 to be assigned.

Assuming the bus-range is intentional, fix this by moving the devices to the first valid secondary bus number.

No, bus-range is not intentional. It should be removed instead.

Quoted 32 lines
Fixes 893faf67438c ("ARM: dts: BCM5301X: add root pcie bridges")
---
 arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/broadcom/bcm4709-netgear-r8000.dts +2 -3
index d170c71cbd76..355be5014943 100644
@@ -147,7 +147,7 @@ pcie@0,0 {
 
                pcie@1,0 {
                        device_type = "pci";
-                       reg = <0x800 0 0 0 0>;
+                       reg = <0x10800 0 0 0 0>;
 
                        #address-cells = <3>;
                        #size-cells = <2>;
@@ -162,7 +162,7 @@ wifi@0,0 {
 
                pcie@2,0 {
                        device_type = "pci";
-                       reg = <0x1000 0 0 0 0>;
+                       reg = <0x11000 0 0 0 0>;
 
                        #address-cells = <3>;
                        #size-cells = <2>;
--

2.39.5