Skip to content

Commit

Permalink
Plan 9 from Bell Labs 2013-08-10
Browse files Browse the repository at this point in the history
  • Loading branch information
0intro committed Aug 10, 2013
1 parent e21d200 commit 1fbdb3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sys/src/9/pc/ethervt6105m.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1fbdb3c

Please sign in to comment.