summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/pci/host-generic-pci.txt
diff options
context:
space:
mode:
authorDavid Daney2015-10-08 21:54:16 +0200
committerBjorn Helgaas2015-10-10 01:18:35 +0200
commitf6225c3a0c1f2ef908244c31b91d62066360ce1d (patch)
treeb0728bcd16ae1e87c8c5dd8bd9268da13e4944b5 /Documentation/devicetree/bindings/pci/host-generic-pci.txt
parentPCI: generic: Pass starting bus number to pci_scan_root_bus() (diff)
downloadkernel-qcow2-linux-f6225c3a0c1f2ef908244c31b91d62066360ce1d.tar.gz
kernel-qcow2-linux-f6225c3a0c1f2ef908244c31b91d62066360ce1d.tar.xz
kernel-qcow2-linux-f6225c3a0c1f2ef908244c31b91d62066360ce1d.zip
PCI: generic: Fix address window calculation for non-zero starting bus
Make the offset from the beginning of the "reg" property be from the starting bus number, rather than zero. Hoist the invariant size calculation out of the mapping for loop. Update host-generic-pci.txt to clarify the semantics of the "reg" property with respect to non-zero starting bus numbers. Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/pci/host-generic-pci.txt')
-rw-r--r--Documentation/devicetree/bindings/pci/host-generic-pci.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/pci/host-generic-pci.txt b/Documentation/devicetree/bindings/pci/host-generic-pci.txt
index cf3e205e0b7e..3f1d3fca62bb 100644
--- a/Documentation/devicetree/bindings/pci/host-generic-pci.txt
+++ b/Documentation/devicetree/bindings/pci/host-generic-pci.txt
@@ -34,8 +34,9 @@ Properties of the host controller node:
- #size-cells : Must be 2.
- reg : The Configuration Space base address and size, as accessed
- from the parent bus.
-
+ from the parent bus. The base address corresponds to
+ the first bus in the "bus-range" property. If no
+ "bus-range" is specified, this will be bus 0 (the default).
Properties of the /chosen node: