[Sound-open-firmware] [PATCH v4 3/5] dma: introduce parameter to store the number of channels draining

Liam Girdwood liam.r.girdwood at linux.intel.com
Tue Jun 12 09:33:30 CEST 2018


On Mon, 2018-06-11 at 20:37 -0700, Ranjani Sridharan wrote:
> +#include <arch/atomic.h>
>  
>  /* DMA direction bitmasks used to define DMA copy direction */
>  #define DMA_DIR_MEM_TO_MEM     (1 << 0) /* local memory copy */
> @@ -139,6 +140,7 @@ struct dma {
>         struct dma_plat_data plat_data;
>         spinlock_t lock;
>         const struct dma_ops *ops;
> +       atomic_t num_channels_busy; /* number of channels draining */
>         void *private;
>  };

All applied, but the comment looks wrong ? Shouldn't it be /* number of busy
channels */ ? Can you fix incrementally.

Thanks

Liam




More information about the Sound-open-firmware mailing list