aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2025-05-05 10:43:41 +0200
committerDavid S. Miller <davem@davemloft.net>2025-05-07 12:57:06 +0100
commitef6a29e86785fe56e4af814509617183d7d8779c (patch)
tree23d01c52b39bf7ba9b67e9f72240222bc736833e /net/lapb/lapb_timer.c
parentnet: usb: lan78xx: Refactor USB link power configuration into helper (diff)
downloadwireguard-linux-ef6a29e86785fe56e4af814509617183d7d8779c.tar.xz
wireguard-linux-ef6a29e86785fe56e4af814509617183d7d8779c.zip
net: usb: lan78xx: Extract flow control configuration to helper
Move flow control register configuration from lan78xx_update_flowcontrol() into a new helper function lan78xx_configure_flowcontrol(). This separates hardware-specific programming from policy logic and simplifies the upcoming phylink integration. The values used in this initial version of lan78xx_configure_flowcontrol() are taken over as-is from the original implementation to avoid functional changes. While they may not be optimal for all USB and link speed combinations, they are known to work reliably. Optimization of pause time and thresholds based on runtime conditions can be done in a separate follow-up patch. The forward declaration of lan78xx_configure_flowcontrol() will also be removed later during the phylink conversion. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions