diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2023-10-26 07:10:50 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-27 14:43:53 -0700 |
commit | 77c819cb493acf04bcbb52411debc4ef044429b2 (patch) | |
tree | f7ae7d6b7399b5723717d0da63077e20f8eb49e0 /drivers/iio/trigger/stm32-timer-trigger.c | |
parent | 818cdb0f4b3834b342a32040ba0ee12fefb548e0 (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 <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 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions