ref: bfb64acc57c5d88b9d8de7f80edae9e66e0d0dea
parent: 015fd327835994324852c697af7071e9d65306b5
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon Dec 31 16:50:08 EST 2012
ether82563: fix phyerrata()
--- a/sys/src/9/pc/ether82563.c
+++ b/sys/src/9/pc/ether82563.c
@@ -1299,13 +1299,13 @@
static void
phyerrata(Ether *e, Ctlr *c)
{- if(e->mbps == 0)
+ if(e->mbps == 0){ if(c->phyerrata == 0){c->phyerrata++;
phywrite(c, 1, Phyprst, Prst); /* try a port reset */
print("%s: phy port reset\n", cname(c));}
- else
+ }else
c->phyerrata = 0;
}
--
⑨