diff options
author | Russell King (Oracle) <[email protected]> | 2024-11-12 16:20:00 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-11-13 18:52:54 -0800 |
commit | 671154f174e0e7f242507cd074497661deb41bfd (patch) | |
tree | c85141494643ee5fe231cde128174da27fb7b659 /lib/memory-notifier-error-inject.c | |
parent | 7d2253d93327de257590b88c86eeebfe7ff88d0c (diff) |
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) <[email protected]>
Reviewed-by: Oleksij Rempel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions