]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: designware: Parse bus-range property from devicetree
authorLucas Stach <l.stach@pengutronix.de>
Wed, 23 Jul 2014 17:52:38 +0000 (19:52 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 4 Sep 2014 20:58:48 +0000 (14:58 -0600)
commit4f2ebe00597c44f7dc6f88a052a2981ddcf6a0b6
tree2b1532fb6581a400bcf6e28a2a275cc169eccb44
parentb14a3d1784a9252aa3bbe0bb9d14588be32f18a1
PCI: designware: Parse bus-range property from devicetree

This allows to explicitly specify the covered bus numbers in the
devicetree, which will come in handy once we see a SoC with more than one
PCIe host controller instance.

Previously the driver relied on the behavior of pci_scan_root_bus() to fill
in a range of 0x00-0xff if no valid range was found.  We fall back to the
same range if no valid DT entry was found to keep backwards compatibility,
but now do it explicitly.

[bhelgaas: use %pR in error message to avoid duplication]
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Pratyush Anand <pratyush.anand@st.com>
Acked-by: Mohit Kumar <mohit.kumar@st.com>
Documentation/devicetree/bindings/pci/designware-pcie.txt
drivers/pci/host/pcie-designware.c
drivers/pci/host/pcie-designware.h