diff options
author | David Daney <david.daney@cavium.com> | 2015-10-08 12:54:16 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-10-09 18:18:35 -0500 |
commit | f6225c3a0c1f2ef908244c31b91d62066360ce1d (patch) | |
tree | b0728bcd16ae1e87c8c5dd8bd9268da13e4944b5 /Documentation/devicetree/bindings/pci | |
parent | 47ddb949029f9517a773e67b0e5eaf80ef596dad (diff) | |
download | op-kernel-dev-f6225c3a0c1f2ef908244c31b91d62066360ce1d.zip op-kernel-dev-f6225c3a0c1f2ef908244c31b91d62066360ce1d.tar.gz |
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')
-rw-r--r-- | Documentation/devicetree/bindings/pci/host-generic-pci.txt | 5 |
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 cf3e205..3f1d3fc 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: |