diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-31 21:50:08 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-31 21:50:08 +0100 |
commit | b821a768241d35d23f4f2abe4616f822cc9f3775 (patch) | |
tree | 0ddecc7566005aec9756e518664f4d9c01a2ee43 /sys/src/9/pc/ether82563.c | |
parent | 6cadd03bbeace1c256ba875c2e6a877f924877cd (diff) |
ether82563: fix phyerrata()
Diffstat (limited to 'sys/src/9/pc/ether82563.c')
-rw-r--r-- | sys/src/9/pc/ether82563.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/ether82563.c b/sys/src/9/pc/ether82563.c index a1ab0ca8d..bb5987fa6 100644 --- a/sys/src/9/pc/ether82563.c +++ b/sys/src/9/pc/ether82563.c @@ -1299,13 +1299,13 @@ phywrite(Ctlr *c, uint phyno, uint reg, ushort v) 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; } |