]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: generic: Fix address window calculation for non-zero starting bus
authorDavid Daney <david.daney@cavium.com>
Thu, 8 Oct 2015 19:54:16 +0000 (12:54 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 9 Oct 2015 23:18:35 +0000 (18:18 -0500)
commitf6225c3a0c1f2ef908244c31b91d62066360ce1d
treeb0728bcd16ae1e87c8c5dd8bd9268da13e4944b5
parent47ddb949029f9517a773e67b0e5eaf80ef596dad
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>
Documentation/devicetree/bindings/pci/host-generic-pci.txt
drivers/pci/host/pci-host-generic.c