diff options
author | 2023-10-26 07:10:50 +0200 | |
---|---|---|
committer | 2023-10-27 14:43:53 -0700 | |
commit | 77c819cb493acf04bcbb52411debc4ef044429b2 (patch) | |
tree | f7ae7d6b7399b5723717d0da63077e20f8eb49e0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: dsa: microchip: Add error handling for ksz_switch_macaddr_get() (diff) | |
download | wireguard-linux-77c819cb493acf04bcbb52411debc4ef044429b2.tar.xz wireguard-linux-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 <o.rempel@pengutronix.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20231026051051.2316937-5-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions