From 00521231c8260a5c5ec3389aa79394708a9b98ce Mon Sep 17 00:00:00 2001 From: Michael Neuling Date: Wed, 11 Apr 2018 13:25:08 +1000 Subject: phb4: Restore bus numbers after CRS Currently we restore PCIe bus numbers right after the link is up. Unfortunately as this point we haven't done CRS so config space may not be accessible. This moves the bus number restore till after CRS has happened. Signed-off-by: Michael Neuling Signed-off-by: Stewart Smith --- include/pci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/pci.h b/include/pci.h index 0c2858c..6141159 100644 --- a/include/pci.h +++ b/include/pci.h @@ -436,6 +436,7 @@ extern int64_t pci_find_ecap(struct phb *phb, uint16_t bdfn, uint16_t cap, uint8_t *version); extern void pci_init_capabilities(struct phb *phb, struct pci_device *pd); extern bool pci_wait_crs(struct phb *phb, uint16_t bdfn, uint32_t *out_vdid); +extern void pci_restore_slot_bus_configs(struct pci_slot *slot); extern void pci_device_init(struct phb *phb, struct pci_device *pd); extern struct pci_device *pci_walk_dev(struct phb *phb, struct pci_device *pd, -- cgit v1.1