From 91c96ce08f0a94f696f4ee4394c3c8d22057f3ee Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Tue, 28 Apr 2015 13:49:01 +1000 Subject: 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 Signed-off-by: Stewart Smith --- hw/phb3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/phb3.c') diff --git a/hw/phb3.c b/hw/phb3.c index 2f6ab05..826fba7 100644 --- a/hw/phb3.c +++ b/hw/phb3.c @@ -2031,7 +2031,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) -- cgit v1.1