aboutsummaryrefslogtreecommitdiff
path: root/hw/phb3.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-04-28 13:48:13 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-04-28 13:48:13 +1000
commit522eb5726a1766f0f15330c90749587a2f8d30aa (patch)
treec8826341e1893df68aefc27172550afbe52360d5 /hw/phb3.c
parent5d0273bf46afa7f0deb4d42a72ece60bc9749dff (diff)
downloadskiboot-522eb5726a1766f0f15330c90749587a2f8d30aa.zip
skiboot-522eb5726a1766f0f15330c90749587a2f8d30aa.tar.gz
skiboot-522eb5726a1766f0f15330c90749587a2f8d30aa.tar.bz2
PHB3: Wait 1s, not 100ms, for PCIe electricals to train
The comment says 1s but we are really only waiting for 100ms and this isn't enough for some Altera FPGA cards it seems. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw/phb3.c')
-rw-r--r--hw/phb3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/phb3.c b/hw/phb3.c
index 0172cb3..3f56fbc 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -2043,7 +2043,7 @@ static int64_t phb3_start_link_poll(struct phb3 *p)
*/
p->retries = PHB3_LINK_ELECTRICAL_RETRIES;
p->state = PHB3_STATE_WAIT_LINK_ELECTRICAL;
- return phb3_set_sm_timeout(p, msecs_to_tb(100));
+ return phb3_set_sm_timeout(p, msecs_to_tb(1000));
}
static int64_t phb3_sm_hot_reset(struct phb3 *p)