diff mbox

PHB3: Wait 1s, not 100ms, for PCIe electricals to train

Message ID 1430192941.16571.153.camel@kernel.crashing.org
State Accepted
Headers show

Commit Message

Benjamin Herrenschmidt April 28, 2015, 3:49 a.m. UTC
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>
---

We probably want that in our next 810.xx drop as well as master...

 hw/phb3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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)