diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-06-06 08:59:24 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-06-06 20:49:05 +1000 |
commit | 41b14f9452c25f3dd74a8304763a3cc58bff019f (patch) | |
tree | 5ec726a49542a9b3ec77a3b845d41c4e595bbe05 | |
parent | 9eb2ab74905ff59dd0de5fb3ece6b910863e8a31 (diff) | |
download | skiboot-41b14f9452c25f3dd74a8304763a3cc58bff019f.zip skiboot-41b14f9452c25f3dd74a8304763a3cc58bff019f.tar.gz skiboot-41b14f9452c25f3dd74a8304763a3cc58bff019f.tar.bz2 |
pci: Wait 20ms before checking presence detect on PCIe
As the PHB presence logic has a debounce timer that can take
a while to settle.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | core/pci.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1641,6 +1641,11 @@ void pci_init_slots(void) { unsigned int i; + /* Some PHBs may need that long to debounce the presence detect + * after HW initialization. + */ + time_wait_ms(20); + prlog(PR_NOTICE, "PCI: Resetting PHBs...\n"); pci_do_jobs(pci_reset_phb); |