net: phy: add genphy_c45_check_and_restart_aneg
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 18 Feb 2019 20:27:18 +0000 (21:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 21:03:06 +0000 (13:03 -0800)
commit1af9f16840e920c6193490ae58371fc5cc28bb01
tree4c19c623bf88f17e404ca52d7650c96c6691e21a
parentcc429d529126e5bbe867e839d7de4f75b9daad44
net: phy: add genphy_c45_check_and_restart_aneg

This function will be used by config_aneg callback implementations of
PHY drivers and allows to reduce boilerplate code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy-c45.c
include/linux/phy.h