Commit bb7a60da authored by Daniel Machon's avatar Daniel Machon Committed by David S. Miller

net: sparx5: use library helper for freeing tx buffers

The library has the helper fdma_free_phys() for freeing physical FDMA
memory. Use it in the exit path.
Signed-off-by: default avatarDaniel Machon <daniel.machon@microchip.com>
Reviewed-by: default avatarSteen Hegelund <Steen.Hegelund@microchip.com>
Reviewed-by: default avatarJens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com>
Reviewed-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f4aa7e36
...@@ -494,5 +494,6 @@ int sparx5_fdma_stop(struct sparx5 *sparx5) ...@@ -494,5 +494,6 @@ int sparx5_fdma_stop(struct sparx5 *sparx5)
FDMA_PORT_CTRL_XTR_BUF_IS_EMPTY_GET(val) == 0, FDMA_PORT_CTRL_XTR_BUF_IS_EMPTY_GET(val) == 0,
500, 10000, 0, sparx5); 500, 10000, 0, sparx5);
fdma_free_phys(&sparx5->rx.fdma); fdma_free_phys(&sparx5->rx.fdma);
fdma_free_phys(&sparx5->tx.fdma);
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment