]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: avoid genphy_aneg_done() for PHYs without clause 22 support
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 5 Jun 2017 11:22:55 +0000 (12:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2017 01:14:13 +0000 (21:14 -0400)
commit5ac91bff7114de230246db071145e7e72f145495
tree18ada5b43daa45ddaefd02d22bcc6ba0aba705f3
parenta6136cb4ff83d9bad06771f828b395d914245b44
net: phy: avoid genphy_aneg_done() for PHYs without clause 22 support

Avoid calling genphy_aneg_done() for PHYs that do not implement the
Clause 22 register set.

Clause 45 PHYs may implement the Clause 22 register set along with the
Clause 22 extension MMD.  Hence, we can't simply block access to the
Clause 22 functions based on the PHY being a Clause 45 PHY.

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