Skip to content
Snippets Groups Projects
  • Heiner Kallweit's avatar
    net: phy: add phy_check_link_status · 74a992b3
    Heiner Kallweit authored
    
    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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    74a992b3
Code owners
Assign users and groups as approvers for specific file changes. Learn more.