diff options
author | Marc Zyngier <maz@kernel.org> | 2020-08-19 12:42:55 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-08-20 01:30:57 +0300 |
commit | d1ac0002dd297069bb8448c2764c9c31c4668441 (patch) | |
tree | 5081d53dd1688e4a6349a6d43949db0f888ea748 /Documentation/devicetree | |
parent | 43647929175e2cd30a6a1b1a5d385704bbf934a3 (diff) | |
download | linux-d1ac0002dd297069bb8448c2764c9c31c4668441.tar.xz |
of: address: Work around missing device_type property in pcie nodes
Recent changes to the DT PCI bus parsing made it mandatory for
device tree nodes describing a PCI controller to have the
'device_type = "pci"' property for the node to be matched.
Although this follows the letter of the specification, it
breaks existing device-trees that have been working fine
for years. Rockchip rk3399-based systems are a prime example
of such collateral damage, and have stopped discovering their
PCI bus.
In order to paper over it, let's add a workaround to the code
matching the device type, and accept as PCI any node that is
named "pcie",
A warning will hopefully nudge the user into updating their
DT to a fixed version if they can, but the incentive is
obviously pretty small.
Fixes: 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser")
Suggested-by: Rob Herring <robh+dt@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200819094255.474565-1-maz@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions