ether82563: fix phyerrata()
This commit is contained in:
parent
6cadd03bbe
commit
b821a76824
1 changed files with 2 additions and 2 deletions
|
@ -1299,13 +1299,13 @@ phywrite(Ctlr *c, uint phyno, uint reg, ushort v)
|
||||||
static void
|
static void
|
||||||
phyerrata(Ether *e, Ctlr *c)
|
phyerrata(Ether *e, Ctlr *c)
|
||||||
{
|
{
|
||||||
if(e->mbps == 0)
|
if(e->mbps == 0){
|
||||||
if(c->phyerrata == 0){
|
if(c->phyerrata == 0){
|
||||||
c->phyerrata++;
|
c->phyerrata++;
|
||||||
phywrite(c, 1, Phyprst, Prst); /* try a port reset */
|
phywrite(c, 1, Phyprst, Prst); /* try a port reset */
|
||||||
print("%s: phy port reset\n", cname(c));
|
print("%s: phy port reset\n", cname(c));
|
||||||
}
|
}
|
||||||
else
|
}else
|
||||||
c->phyerrata = 0;
|
c->phyerrata = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue