aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/lib/ynl.py
diff options
context:
space:
mode:
authorOleksij Rempel <[email protected]>2023-10-26 05:10:50 +0000
committerJakub Kicinski <[email protected]>2023-10-27 21:43:53 +0000
commit77c819cb493acf04bcbb52411debc4ef044429b2 (patch)
treef7ae7d6b7399b5723717d0da63077e20f8eb49e0 /tools/net/ynl/lib/ynl.py
parentnet: dsa: microchip: Add error handling for ksz_switch_macaddr_get() (diff)
downloadkernel-77c819cb493acf04bcbb52411debc4ef044429b2.tar.gz
kernel-77c819cb493acf04bcbb52411debc4ef044429b2.zip
net: dsa: microchip: Refactor switch shutdown routine for WoL preparation
Centralize the switch shutdown routine in a dedicated function, ksz_switch_shutdown(), to enhance code maintainability and reduce redundancy. This change abstracts the common shutdown operations previously duplicated in ksz9477_i2c_shutdown() and ksz_spi_shutdown(). This refactoring is a preparatory step for an upcoming patch to avoid reset on shutdown if Wake-on-LAN (WoL) is enabled. Signed-off-by: Oleksij Rempel <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/net/ynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions