aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-11-07 20:45:58 +0100
committerDavid S. Miller <davem@davemloft.net>2018-11-08 15:02:05 -0800
commit74a992b3598ad22784ce238f59875b782e1ca537 (patch)
treef09d120b0ad5e0aba5937250acd82e4583940d19 /include/linux/phy.h
parentnet: phy: remove useless check in state machine case PHY_RESUMING (diff)
downloadlinux-dev-74a992b3598ad22784ce238f59875b782e1ca537.tar.xz
linux-dev-74a992b3598ad22784ce238f59875b782e1ca537.zip
net: phy: add phy_check_link_status
In few places in the state machine the state is set to PHY_RUNNING or PHY_NOLINK after doing a phy_read_status(). So factor this out to phy_check_link_status(). First use it in phy_start_aneg(): By setting the state to PHY_RUNNING or PHY_NOLINK directly we can remove the code to handle the case that we're using interrupts and aneg was finished already. Definition of phy_link_up and phy_link_down needs to be moved because they are called in the new function. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
0 files changed, 0 insertions, 0 deletions