[PATCH net-next v7 06/14] net: lan966x: use a dedicated device for DMA operations
Simon Horman
horms at kernel.org
Wed Sep 23 01:59:43 PDT 2026
On Fri, Sep 18, 2026 at 01:33:58PM +0200, Daniel Machon wrote:
> In preparation for the PCIe FDMA implementation, add lan966x->dma_dev,
> resolved once at probe time, and use it for every DMA operation the
> FDMA path performs: coherent allocations, streaming mappings and the RX
> page pool. Natively, dma_dev is lan966x->dev, so there is no functional
> change.
>
> Since dma_dev differs from dev only on the PCIe path, add
> lan966x_is_pci() on top of it, for the later PCIe patches to key off.
>
> Signed-off-by: Daniel Machon <daniel.machon at microchip.com>
Reviewed-by: Simon Horman <horms at kernel.org>
More information about the linux-arm-kernel
mailing list