projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11659a1
)
PCI: xgene: Request host bridge window resources
author
Bjorn Helgaas
<bhelgaas@google.com>
Sat, 28 May 2016 23:14:24 +0000
(18:14 -0500)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Mon, 20 Jun 2016 19:06:05 +0000
(14:06 -0500)
Request host bridge window resources so they appear in ioport_resource and
iomem_resource and are reflected in /proc/ioports and /proc/iomem.
For example, the following entries did not previously appear in /proc/iomem:
e180000000
-
e1ffffffff
: /soc/pcie@
1f2b0000
e180000000
-
e182ffffff
: PCI Bus 0000:01
e180000000
-
e181ffffff
: 0000:01:00.0
e182000000
-
e1820fffff
: 0000:01:00.0
e182100000
-
e1821fffff
: 0000:01:00.0
f000000000
-
ffffffffff
: /soc/pcie@
1f2b0000
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-xgene.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/host/pci-xgene.c
b/drivers/pci/host/pci-xgene.c
index bc4e1c61206ca92da1c3cc09e005c6e418949172..7eb20cc76dd34b0996f41fdd4af05943f3cac17a 100644
(file)
--- a/
drivers/pci/host/pci-xgene.c
+++ b/
drivers/pci/host/pci-xgene.c
@@
-540,6
+540,10
@@
static int xgene_pcie_probe_bridge(struct platform_device *pdev)
if (ret)
return ret;
+ ret = devm_request_pci_bus_resources(&pdev->dev, &res);
+ if (ret)
+ goto error;
+
ret = xgene_pcie_setup(port, &res, iobase);
if (ret)
goto error;