]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: sparx5: move stats initialization and add deinit function
authorDaniel Machon <daniel.machon@microchip.com>
Fri, 27 Feb 2026 14:56:42 +0000 (15:56 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2026 02:46:21 +0000 (18:46 -0800)
commite180067a03cad7043d951b0040f0169a267f0293
tree25e3d6dc782d53c37708e6e6f8e98195961a9054
parent13cb1b68842b010275974454d4c5dffaf427197f
net: sparx5: move stats initialization and add deinit function

The sparx5_stats_init() function starts a worker thread which needs to
be cleaned up. Move the initialization code to probe() and add a
deinit() function for proper teardown.

Also, rename sparx_stats_init() to sparx5_stats_init() to match the
driver naming convention.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20260227-sparx5-init-deinit-v2-4-10ba54ccf005@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.h