Re: [PATCH net-next v4 3/3] net: ethernet: mtk_eth_soc: use generic allocator for SRAM
From: Andrew Lunn
Date: Wed Jul 02 2025 - 03:47:03 EST
On Wed, Jul 02, 2025 at 03:38:15AM +0100, Daniel Golle wrote:
> Use a dedicated "mmio-sram" node and the generic allocator
> instead of open-coding SRAM allocation for DMA rings.
> Keep support for legacy device trees but notify the user via a
> warning to update, and let the ethernet driver create the
> gen_pool in this case.
>
> Co-developed-by: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx>
> Signed-off-by: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx>
> Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew