Re: [PATCH net-next v7 06/14] net: lan966x: use a dedicated device for DMA operations

From: Simon Horman

Date: Wed Sep 23 2026 - 05:18:11 EST


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@xxxxxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>