aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-06-09 18:32:51 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-09 18:32:51 +1000
commit13e1487281ee78c376699158bddf895b9ce7827c (patch)
tree35bbf855e0829f1b9bb5567c2398dd521a6a02ae
parenta49d21c9b29dfb38229761b0294f36308c8bde66 (diff)
parent627666c4d71f8210abc971d954b19af0382d024c (diff)
downloadskiboot-13e1487281ee78c376699158bddf895b9ce7827c.zip
skiboot-13e1487281ee78c376699158bddf895b9ce7827c.tar.gz
skiboot-13e1487281ee78c376699158bddf895b9ce7827c.tar.bz2
Merge branch 'skiboot-5.1.x' into skiboot-5.2.x
-rw-r--r--core/pci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/pci.c b/core/pci.c
index e2fe287..99610ec 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -156,6 +156,13 @@ static struct pci_device *pci_scan_one(struct phb *phb, struct pci_device *paren
}
if (had_crs)
PCIDBG(phb, bdfn, "Probe success after CRS\n");
+
+ /* Perform a dummy write to the device in order for it to
+ * capture it's own bus number, so any subsequent error
+ * messages will be properly tagged
+ */
+ pci_cfg_write32(phb, bdfn, 0, vdid);
+
pd = zalloc(sizeof(struct pci_device));
if (!pd) {
PCIERR(phb, bdfn,"Failed to allocate structure pci_device !\n");