lkml.org 
[lkml]   [2022]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2] dmaengine: sprd: Support two-stage dma interrupt
On 04-10-22, 07:49, Cixi Geng wrote:
> From: Cixi Geng <cixi.geng1@unisoc.com>
>
> Audio need to request Audio CP global dma interrupt, so Audio CP
> DMA should support two-stage interrupt to adapte it.
> It will occur interrupt when two-stage dma channel transfer done.

The patch looks fine to me but...

> diff --git a/include/linux/dma/sprd-dma.h b/include/linux/dma/sprd-dma.h
> index d09c6f6f6da5..26de41d6d915 100644
> --- a/include/linux/dma/sprd-dma.h
> +++ b/include/linux/dma/sprd-dma.h

> enum sprd_dma_int_type {
> SPRD_DMA_NO_INT,
> @@ -112,6 +120,10 @@ enum sprd_dma_int_type {
> SPRD_DMA_TRANS_BLK_INT,
> SPRD_DMA_LIST_INT,
> SPRD_DMA_CFGERR_INT,
> + SPRD_DMA_SRC_CHN0_INT,
> + SPRD_DMA_SRC_CHN1_INT,
> + SPRD_DMA_DST_CHN0_INT,
> + SPRD_DMA_DST_CHN1_INT,

why is sprd_dma_int_type part of driver interface. sprd_dma_int_type is
used only by this driver and should be moved into the driver..

Can you change that as well please

--
~Vinod

\
 
 \ /
  Last update: 2022-10-19 16:34    [W:0.064 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site