aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorOleksij Rempel <[email protected]>2023-10-26 07:10:50 +0200
committerJakub Kicinski <[email protected]>2023-10-27 14:43:53 -0700
commit77c819cb493acf04bcbb52411debc4ef044429b2 (patch)
treef7ae7d6b7399b5723717d0da63077e20f8eb49e0 /scripts/generate_rust_analyzer.py
parent818cdb0f4b3834b342a32040ba0ee12fefb548e0 (diff)
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions