mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
net: thunderx: start phy before starting autonegotiation
Since commit2b3e88ea65
("net: phy: improve phy state checking") phy_start_aneg() expects phy state to be >= PHY_UP. Call phy_start() before calling phy_start_aneg() during probe so that autonegotiation is initiated. As phy_start() takes care of calling phy_start_aneg(), drop the explicit call to phy_start_aneg(). Network fails without this patch on Octeon TX. Fixes:2b3e88ea65
("net: phy: improve phy state checking") Signed-off-by: Mian Yousaf Kaukab <ykaukab@suse.de> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
df95467b6d
commit
a350d2e7ad
1 changed files with 1 additions and 1 deletions
|
@ -1115,7 +1115,7 @@ static int bgx_lmac_enable(struct bgx *bgx, u8 lmacid)
|
||||||
phy_interface_mode(lmac->lmac_type)))
|
phy_interface_mode(lmac->lmac_type)))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
phy_start_aneg(lmac->phydev);
|
phy_start(lmac->phydev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue