Skip to content

Commit 17adc3f

Browse files
committed
net: marvell,prestera: Fix example PCI bus addressing
The example for PCI devices has some addressing errors. 'reg' is written as if the parent bus is PCI, but the default bus for examples is 1 address and size cell. 'ranges' is defining config space with a size of 0. Generally, config space should not be defined in 'ranges', only PCI memory and I/O spaces. Fix these issues by updating the values with made-up, but valid values. This was uncovered with recent dtschema changes. Link: https://lore.kernel.org/r/20240122173514.935742-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 607aad1 commit 17adc3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/devicetree/bindings/net/marvell,prestera.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ examples:
7878
pcie@0 {
7979
#address-cells = <3>;
8080
#size-cells = <2>;
81-
ranges = <0x0 0x0 0x0 0x0 0x0 0x0>;
82-
reg = <0x0 0x0 0x0 0x0 0x0 0x0>;
81+
ranges = <0x02000000 0x0 0x100000 0x10000000 0x0 0x0>;
82+
reg = <0x0 0x1000>;
8383
device_type = "pci";
8484
8585
switch@0,0 {

0 commit comments

Comments
 (0)