[PATCH net-next 06/12] net: sparx5: use library helper for freeing rx buffers
Daniel Machon
daniel.machon at microchip.com
Mon Sep 2 07:54:11 PDT 2024
The library has the helper fdma_free_phys() for freeing physical FDMA
memory. Use it in the exit path.
Signed-off-by: Daniel Machon <daniel.machon at microchip.com>
Reviewed-by: Steen Hegelund <Steen.Hegelund at microchip.com>
Reviewed-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard at microchip.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur at microchip.com>
---
drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c b/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c
index 122876136f75..d01516f32d0c 100644
--- a/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c
+++ b/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c
@@ -523,5 +523,6 @@ int sparx5_fdma_stop(struct sparx5 *sparx5)
read_poll_timeout(sparx5_fdma_port_ctrl, val,
FDMA_PORT_CTRL_XTR_BUF_IS_EMPTY_GET(val) == 0,
500, 10000, 0, sparx5);
+ fdma_free_phys(&sparx5->rx.fdma);
return 0;
}
--
2.34.1
More information about the linux-arm-kernel
mailing list