Re: [PATCH v4 12/28] dmaengine: bcm2835: pass dma_chan to generic functions

From: Frank Li

Date: Wed Dec 02 2026 - 22:16:49 EST


On Fri, Nov 27, 2026 at 01:22:02PM +0100, Andrea della Porta wrote:
> In preparation to support more platforms pass the dma_chan to the
> generic functions. This provides access to the DMA device and possible
> platform specific data.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@xxxxxxxx>
> Signed-off-by: Andrea della Porta <andrea.porta@xxxxxxxx>
> ---
> drivers/dma/bcm2835-dma.c | 26 +++++++++++++++-----------
> 1 file changed, 15 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c
> index 416d9882aeb2..42a7e6eaff9f 100644
> --- a/drivers/dma/bcm2835-dma.c
> +++ b/drivers/dma/bcm2835-dma.c
> @@ -305,13 +305,14 @@ static void bcm2835_dma_desc_free(struct virt_dma_desc *vd)
> bcm2835_dma_free_cb_chain(container_of(vd, struct bcm2835_desc, vd));
> }
>
> -static bool bcm2835_dma_create_cb_set_length(struct bcm2835_chan *chan,
> +static bool bcm2835_dma_create_cb_set_length(struct dma_chan *chan,

No sure why need this change, dma_chan is embeded field in bcm2835_chan.

Frank