aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/pyynl/cli.py
diff options
context:
space:
mode:
authorOleksij Rempel <[email protected]>2025-05-05 08:43:37 +0000
committerDavid S. Miller <[email protected]>2025-05-07 11:57:05 +0000
commitd39f339d2603736ff90b0b32d9aea3b954307fd5 (patch)
treec3fee0c2d85305afc5d95205fd60f60f9596b683 /tools/net/ynl/pyynl/cli.py
parentnet: usb: lan78xx: remove explicit check for missing PHY driver (diff)
downloadkernel-d39f339d2603736ff90b0b32d9aea3b954307fd5.tar.gz
kernel-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 <[email protected]> Reviewed-by: Thangaraj Samynathan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions