]> www.infradead.org Git - users/hch/misc.git/commit
net: sparx5: ops out certain FDMA functions
authorDaniel Machon <daniel.machon@microchip.com>
Mon, 13 Jan 2025 19:36:08 +0000 (20:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Jan 2025 22:13:33 +0000 (14:13 -0800)
commit56143c52a342d0333a9b5ba12bc16dd071a1af5b
tree488c4644b5bb34fa0342e4ff44860ad02f99ada8
parentcded2e0f1b0de5aa1ebd4bf42c3f1919b7adf6cd
net: sparx5: ops out certain FDMA functions

We are going to implement the RX  and TX paths a bit differently on
lan969x and therefore need to introduce new ops for FDMA functions:
init, deinit, xmit and poll. Assign the Sparx5 equivalents for these and
update the code throughout. Also add a 'struct net_device' argument to
the xmit() function, as we will be needing that for lan969x.

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-4-c468f02fd623@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c