diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-06-06 18:26:31 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-06-25 08:44:23 -0400 |
commit | ac575ead871f6529f30baeda5ac34696ac64ec33 (patch) | |
tree | 1ab3d66280cc25e76974a82ad356856f94eb25ab | |
parent | b2a5d3e2cf65e46522b695b76f93ec1b0f6cad30 (diff) |
PCI: rcar Gen2: Request host bridge window resources
Request host bridge window resources so they appear in ioport_resource and
iomem_resource and are reflected in /proc/ioports and /proc/iomem.
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/pci/host/pci-rcar-gen2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/host/pci-rcar-gen2.c b/drivers/pci/host/pci-rcar-gen2.c index ddf776556c78..e8f5ac84b2c6 100644 --- a/drivers/pci/host/pci-rcar-gen2.c +++ b/drivers/pci/host/pci-rcar-gen2.c | |||
@@ -193,6 +193,7 @@ static int rcar_pci_setup(int nr, struct pci_sys_data *sys) | |||
193 | struct rcar_pci_priv *priv = sys->private_data; | 193 | struct rcar_pci_priv *priv = sys->private_data; |
194 | void __iomem *reg = priv->reg; | 194 | void __iomem *reg = priv->reg; |
195 | u32 val; | 195 | u32 val; |
196 | int ret; | ||
196 | 197 | ||
197 | pm_runtime_enable(priv->dev); | 198 | pm_runtime_enable(priv->dev); |
198 | pm_runtime_get_sync(priv->dev); | 199 | pm_runtime_get_sync(priv->dev); |
@@ -273,6 +274,9 @@ static int rcar_pci_setup(int nr, struct pci_sys_data *sys) | |||
273 | 274 | ||
274 | /* Add PCI resources */ | 275 | /* Add PCI resources */ |
275 | pci_add_resource(&sys->resources, &priv->mem_res); | 276 | pci_add_resource(&sys->resources, &priv->mem_res); |
277 | ret = devm_request_pci_bus_resources(priv->dev, &sys->resources); | ||
278 | if (ret < 0) | ||
279 | return ret; | ||
276 | 280 | ||
277 | /* Setup bus number based on platform device id / of bus-range */ | 281 | /* Setup bus number based on platform device id / of bus-range */ |
278 | sys->busnr = priv->busnr; | 282 | sys->busnr = priv->busnr; |