Re: [PATCH v2 1/2] ARM: dts: bcm2711-rpi-4-b: Fix pcie0's unit address formatting

From
Rob Herring <robh+dt@kernel.org>
Date
2021-08-31 13:51:05
Also in
linux-arm-kernel, lkml
Reply to
Nicolas Saenz Julienne, 2021-08-31
On Tue, Aug 31, 2021 at 7:59 AM Nicolas Saenz Julienne
[off-list ref] wrote:
dtbs_check currently complains that:

arch/arm/boot/dts/bcm2711-rpi-4-b.dts:220.10-231.4: Warning
(pci_device_reg): /scb/pcie@7d500000/pci@1,0: PCI unit address format
error, expected "0,0"

Unsurprisingly pci@0,0 is the right address, as illustrated by its reg
property:

    &pcie0 {
            pci@0,0 {
                    /*
                     * As defined in the IEEE Std 1275-1994 document,
                     * reg is a five-cell address encoded as (phys.hi
                     * phys.mid phys.lo size.hi size.lo). phys.hi
                     * should contain the device's BDF as 0b00000000
                     * bbbbbbbb dddddfff 00000000. The other cells
                     * should be zero.
                     */
                    reg = <0 0 0 0 0>;
            };
    };

The device is clearly 0. So fix it.

Also add a missing 'device_type = "pci"'.

Fixes: 258f92d2f840 ("ARM: dts: bcm2711: Add reset controller to xHCI node")
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Nicolas Saenz Julienne <redacted>
---

Changes since v1:
 - s/bus/device/ when talking about unit addresses
 - Add device_type
 - Add Suggested-by

 arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by: Rob Herring <robh@kernel.org>
Thread (4 messages) 4 messages, 2 authors, last reply 2021-08-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help