diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-11-12 17:20:00 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-14 03:52:54 +0100 |
commit | 671154f174e0e7f242507cd074497661deb41bfd (patch) | |
tree | c85141494643ee5fe231cde128174da27fb7b659 /samples | |
parent | Merge branch 'mptcp-pm-a-few-more-fixes' (diff) | |
download | linux-671154f174e0e7f242507cd074497661deb41bfd.tar.xz linux-671154f174e0e7f242507cd074497661deb41bfd.zip |
net: phylink: ensure PHY momentary link-fails are handled
Normally, phylib won't notify changes in quick succession. However, as
a result of commit 3e43b903da04 ("net: phy: Immediately call
adjust_link if only tx_lpi_enabled changes") this is no longer true -
it is now possible that phy_link_down() and phy_link_up() will both
complete before phylink's resolver has run, which means it'll miss that
pl->phy_state.link momentarily became false.
Rename "mac_link_dropped" to be more generic "link_failed" since it will
cover more than the MAC/PCS end of the link failing, and arrange to set
this in phylink_phy_change() if we notice that the PHY reports that the
link is down.
This will ensure that we capture an EEE reconfiguration event.
Fixes: 3e43b903da04 ("net: phy: Immediately call adjust_link if only tx_lpi_enabled changes")
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://patch.msgid.link/E1tAtcW-002RBS-LB@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions