OSDN Git Service

net: phy: hook up clause 45 autonegotiation restart
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 5 Jun 2017 11:23:00 +0000 (12:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2017 01:14:13 +0000 (21:14 -0400)
commit002ba7058a7f141cf22d37967a4ef78239c50e9e
tree8a72dbee1f940693c4087f196f4fe8f0399d7855
parent41408ad519f7a2a1c5229e61f2a97f4df1b61adc
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>
drivers/net/phy/phy.c
include/linux/phy.h