]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: xgene: Add register offset to config space base address
authorFeng Kan <fkan@apm.com>
Tue, 17 Feb 2015 23:14:00 +0000 (15:14 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 6 Mar 2015 04:14:21 +0000 (22:14 -0600)
commit64335b0860abffad91c31e2f1969600fce9413ca
tree5776296d84b2923f2eca45db4b5187d5318411c0
parent7a8b0be1e15b6c741253b9e0e3c1b9a267e80c2e
PCI: xgene: Add register offset to config space base address

In xgene_pcie_map_bus(), we neglected to add in the register offset when
calculating the config space address.  This means all config accesses
operated on the first four bytes of config space.

Add the register offset to the config space base address.

Also correct the xgene_pcie_map_bus() prototype to fix a compiler warning.

[bhelgaas: changelog]
Fixes: 623a83bcc817 ("PCI: xgene: Convert to use generic config accessors")
Posting: http://lkml.kernel.org/r/1424214840-26498-1-git-send-email-fkan@apm.com
Signed-off-by: Feng Kan <fkan@apm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Tanmay Inamdar <tinamdar@apm.com>
Acked-by: Rob Herring <robh@kernel.org>
drivers/pci/host/pci-xgene.c