aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2025-05-05 10:43:37 +0200
committerDavid S. Miller <davem@davemloft.net>2025-05-07 12:57:05 +0100
commitd39f339d2603736ff90b0b32d9aea3b954307fd5 (patch)
treec3fee0c2d85305afc5d95205fd60f60f9596b683 /net/lapb/lapb_timer.c
parentnet: usb: lan78xx: remove explicit check for missing PHY driver (diff)
downloadwireguard-linux-d39f339d2603736ff90b0b32d9aea3b954307fd5.tar.xz
wireguard-linux-d39f339d2603736ff90b0b32d9aea3b954307fd5.zip
net: usb: lan78xx: refactor PHY init to separate detection and MAC configuration
Split out PHY detection into lan78xx_get_phy() and MAC-side setup into lan78xx_mac_prepare_for_phy(), making the main lan78xx_phy_init() cleaner and easier to follow. This improves separation of concerns and prepares the code for a future transition to phylink. Fixed PHY registration and interface selection are now handled in lan78xx_get_phy(), while MAC-side delay configuration is done in lan78xx_mac_prepare_for_phy(). The fixed PHY fallback is preserved for setups like EVB-KSZ9897-1, where LAN7801 connects directly to a KSZ switch without a standard PHY or device tree support. No functional changes intended. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Thangaraj Samynathan <thangaraj.s@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions