mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: phy: hook up clause 45 autonegotiation restart
genphy_restart_aneg() can only restart autonegotiation on clause 22 PHYs. Add a phy_restart_aneg() function which selects between the clause 22 and clause 45 restart functionality depending on the PHY type and whether the Clause 45 PHY supports the Clause 22 register set. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
41408ad519
commit
002ba7058a
2 changed files with 22 additions and 2 deletions
|
@ -804,6 +804,7 @@ int phy_start_aneg(struct phy_device *phydev);
|
|||
int phy_aneg_done(struct phy_device *phydev);
|
||||
|
||||
int phy_stop_interrupts(struct phy_device *phydev);
|
||||
int phy_restart_aneg(struct phy_device *phydev);
|
||||
|
||||
static inline int phy_read_status(struct phy_device *phydev)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue