diff mbox series

[4/6] pci: Make pci_wait_crs() global

Message ID 20170912045619.31386-4-mikey@neuling.org
State Accepted
Headers show
Series [1/6] phb4: Remove stable retries | expand

Commit Message

Michael Neuling Sept. 12, 2017, 4:56 a.m. UTC
We are going need pci_wait_crs() in the PHB4 code so make it global.

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 core/pci.c    | 2 +-
 include/pci.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/core/pci.c b/core/pci.c
index 917a9e6e48..b6e7e824a4 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -218,7 +218,7 @@  void pci_init_capabilities(struct phb *phb, struct pci_device *pd)
 	pci_init_pm_cap(phb, pd);
 }
 
-static bool pci_wait_crs(struct phb *phb, uint16_t bdfn, uint32_t *out_vdid)
+bool pci_wait_crs(struct phb *phb, uint16_t bdfn, uint32_t *out_vdid)
 {
 	uint32_t retries, vdid;
 	int64_t rc;
diff --git a/include/pci.h b/include/pci.h
index 884ce622c6..d75c8d1411 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -425,6 +425,7 @@  extern int64_t pci_find_cap(struct phb *phb, uint16_t bdfn, uint8_t cap);
 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_device_init(struct phb *phb, struct pci_device *pd);
 extern struct pci_device *pci_walk_dev(struct phb *phb,
 				       struct pci_device *pd,