From: Lorenzo Pieralisi Date: Wed, 19 Apr 2017 16:49:02 +0000 (+0100) Subject: PCI: iproc-platform: Update PCI config space remap function X-Git-Tag: v4.14-rc1~961^2~8^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=868564da658b58ab8864124428fa8fff970bf2bd;p=platform%2Fkernel%2Flinux-rpi.git PCI: iproc-platform: Update PCI config space remap function PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo Pieralisi Signed-off-by: Bjorn Helgaas Cc: Ray Jui Cc: Jon Mason --- diff --git a/drivers/pci/host/pcie-iproc-platform.c b/drivers/pci/host/pcie-iproc-platform.c index f4909bb..b48d0db 100644 --- a/drivers/pci/host/pcie-iproc-platform.c +++ b/drivers/pci/host/pcie-iproc-platform.c @@ -67,7 +67,8 @@ static int iproc_pcie_pltfm_probe(struct platform_device *pdev) return ret; } - pcie->base = devm_ioremap(dev, reg.start, resource_size(®)); + pcie->base = devm_pci_remap_cfgspace(dev, reg.start, + resource_size(®)); if (!pcie->base) { dev_err(dev, "unable to map controller registers\n"); return -ENOMEM;