]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: sparx5: move PTP IRQ handling out of sparx5_start()
authorDaniel Machon <daniel.machon@microchip.com>
Fri, 27 Feb 2026 14:56:45 +0000 (15:56 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2026 02:46:22 +0000 (18:46 -0800)
commit0432c60112b4fe3ebaf5c2c6bd859b9666233a03
tree3a68a9b073920ce2ffffda7f3bd7949d02314be1
parentcdc374359fe8c99d4519ac331324a344ff89d44d
net: sparx5: move PTP IRQ handling out of sparx5_start()

Move the PTP IRQ request into sparx5_ptp_init() so all PTP setup is
done in one place.

Also move the sparx5_ptp_init() call to right before
sparx5_register_netdevs() and add a cleanup_ptp label. Update remove()
to disable the PTP IRQ and reorder ptp_deinit accordingly.

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