Skip to content

Commit

Permalink
PCI: rcar Gen2: Request host bridge window resources
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
  • Loading branch information
bjorn-helgaas committed Jun 25, 2016
1 parent b2a5d3e commit ac575ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/pci/host/pci-rcar-gen2.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ static int rcar_pci_setup(int nr, struct pci_sys_data *sys)
struct rcar_pci_priv *priv = sys->private_data;
void __iomem *reg = priv->reg;
u32 val;
int ret;

pm_runtime_enable(priv->dev);
pm_runtime_get_sync(priv->dev);
Expand Down Expand Up @@ -273,6 +274,9 @@ static int rcar_pci_setup(int nr, struct pci_sys_data *sys)

/* Add PCI resources */
pci_add_resource(&sys->resources, &priv->mem_res);
ret = devm_request_pci_bus_resources(priv->dev, &sys->resources);
if (ret < 0)
return ret;

/* Setup bus number based on platform device id / of bus-range */
sys->busnr = priv->busnr;
Expand Down

0 comments on commit ac575ea

Please sign in to comment.