diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-06-09 18:32:51 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-06-09 18:32:51 +1000 |
commit | 13e1487281ee78c376699158bddf895b9ce7827c (patch) | |
tree | 35bbf855e0829f1b9bb5567c2398dd521a6a02ae | |
parent | a49d21c9b29dfb38229761b0294f36308c8bde66 (diff) | |
parent | 627666c4d71f8210abc971d954b19af0382d024c (diff) | |
download | skiboot-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"); |