OSDN Git Service

net: phy: prevent PHYs w/o Clause 22 regs from calling genphy_config_aneg
authorCamelia Groza <camelia.groza@nxp.com>
Mon, 23 Jul 2018 15:06:15 +0000 (18:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2018 20:02:37 +0000 (13:02 -0700)
commit34786005eca3b53cffa95d686bf3b7da1305867c
treec460b03b3f1d0e6fdccffeca0e3c68a8aeb05625
parent7e50b2a51d3c40558e4f3f56827e5909d7a723e6
net: phy: prevent PHYs w/o Clause 22 regs from calling genphy_config_aneg

genphy_config_aneg() should be called only by PHYs that implement
the Clause 22 register set. Prevent Clause 45 PHYs that don't implement
the register set from calling the genphy function.

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c