aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-11-07 20:44:56 +0100
committerDavid S. Miller <davem@davemloft.net>2018-11-08 15:02:05 -0800
commitc96469f830568d8859cd65d723da3b79ec0219e0 (patch)
tree2f617e428823a279b8d1539064222ae9a47f4efe /include/linux
parentnet: phy: remove useless check in state machine case PHY_NOLINK (diff)
downloadwireguard-linux-c96469f830568d8859cd65d723da3b79ec0219e0.tar.xz
wireguard-linux-c96469f830568d8859cd65d723da3b79ec0219e0.zip
net: phy: remove useless check in state machine case PHY_RESUMING
If aneg isn't finished yet then the PHY reports the link as down. There's no benefit in setting the state to PHY_AN because the next state machine run would set the status to PHY_NOLINK anyway (except in the meantime aneg has been finished and link is up). Therefore we can set the state to PHY_RUNNING or PHY_NOLINK directly. In addition change the do_carrier parameter in phy_link_down() to true. If carrier was marked as up before (what should never be the case because PHY was in state PHY_HALTED before) then we should mark it as down now. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions