]> www.infradead.org Git - users/hch/misc.git/commit
net: sparx5: activate FDMA tx in start()
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 13 Jan 2025 19:36:07 +0000 (20:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Jan 2025 22:13:33 +0000 (14:13 -0800)
commitcded2e0f1b0de5aa1ebd4bf42c3f1919b7adf6cd
treeb2c78363cbd7eb2a101cbf64fb06b67056dd1d1b
parentb91dcb237c69a05b06d64e2f4ba0a74a0552b80f
net: sparx5: activate FDMA tx in start()

The function sparx5_fdma_tx_activate() is responsible for configuring
the TX FDMA instance and activating the channel. TX activation has
previously been done in the xmit() function, when the first frame is
transmitted. Now that we have separate functions for starting and
stopping the FDMA, it seems reasonable to move the TX activation to the
start function. This change has no implications on the functionality.

Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20250113-sparx5-lan969x-switch-driver-5-v2-3-c468f02fd623@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c