aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_timer.c
diff options
context:
space:
mode:
authorCsókás, Bence <[email protected]>2025-02-07 12:12:55 +0000
committerPaolo Abeni <[email protected]>2025-02-11 09:55:25 +0000
commit67800d296191d0a9bde0a7776f99ca1ddfa0fc26 (patch)
tree64bb319a7417479b4128e11d159148289436b349 /net/ipv4/tcp_timer.c
parentmlxsw: Enable Tx checksum offload (diff)
downloadkernel-67800d296191d0a9bde0a7776f99ca1ddfa0fc26.tar.gz
kernel-67800d296191d0a9bde0a7776f99ca1ddfa0fc26.zip
net: fec: Refactor MAC reset to function
The core is reset both in `fec_restart()` (called on link-up) and `fec_stop()` (going to sleep, driver remove etc.). These two functions had their separate implementations, which was at first only a register write and a `udelay()` (and the accompanying block comment). However, since then we got soft-reset (MAC disable) and Wake-on-LAN support, which meant that these implementations diverged, often causing bugs. For instance, as of now, `fec_stop()` does not check for `FEC_QUIRK_NO_HARD_RESET`, meaning the MII/RMII mode is cleared on eg. a PM power-down event; and `fec_restart()` missed the refactor renaming the "magic" constant `1` to `FEC_ECR_RESET`. To harmonize current implementations, and eliminate this source of potential future bugs, refactor implementation to a common function. Reviewed-by: Michal Swiatkowski <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Csókás, Bence <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
0 files changed, 0 insertions, 0 deletions