ether82563: work arround for 82579LM on Lenovo X230
dont reset the the phy on reset as this causes the link to be stuck at 10mbps.
This commit is contained in:
parent
9a5763624f
commit
2759b81dec
1 changed files with 6 additions and 0 deletions
|
@ -1604,6 +1604,12 @@ i82563detach(Ctlr *ctlr)
|
|||
r = csr32r(ctlr, Ctrl);
|
||||
if(ctlr->type == i82566 || ctlr->type == i82579)
|
||||
r |= Phyrst;
|
||||
/*
|
||||
* hack: 82579LM on lenovo X230 is stuck at 10mbps after
|
||||
* reseting the phy, but works fine if we dont reset.
|
||||
*/
|
||||
if(ctlr->pcidev->did == 0x1502)
|
||||
r &= ~Phyrst;
|
||||
csr32w(ctlr, Ctrl, Devrst | r);
|
||||
delay(1);
|
||||
for(timeo = 0;; timeo++){
|
||||
|
|
Loading…
Reference in a new issue