From 1fbdb3ce3e4ae23e853e071201255f6aa6fc32ec Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Sat, 10 Aug 2013 05:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2013-08-10 --- sys/src/9/pc/ethervt6105m.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/src/9/pc/ethervt6105m.c b/sys/src/9/pc/ethervt6105m.c index ed422bbee..68677031e 100644 --- a/sys/src/9/pc/ethervt6105m.c +++ b/sys/src/9/pc/ethervt6105m.c @@ -1029,7 +1029,8 @@ vt6105Mdetach(Ctlr* ctlr) */ csr16w(ctlr, Cr, Stop); csr16w(ctlr, Cr, Stop|Sfrst); - for(timeo = 0; timeo < 10000; timeo++){ + /* limit used to be 10000, but that wasn't enough for our Soekris 5501s */ + for(timeo = 0; timeo < 100000; timeo++){ if(!(csr16r(ctlr, Cr) & Sfrst)) break; microdelay(1); @@ -1063,7 +1064,8 @@ vt6105Mreset(Ctlr* ctlr) */ r = csr8r(ctlr, Eecsr); csr8w(ctlr, Eecsr, Autold|r); - for(timeo = 0; timeo < 100; timeo++){ + /* limit used to be 100, but that wasn't enough for our Soekris 5501s */ + for(timeo = 0; timeo < 100000; timeo++){ if(!(csr8r(ctlr, Cr) & Autold)) break; microdelay(1);