Re: about DMA API updates proposal

Kumar Gala

On Feb 26, 2021, at 5:46 AM, Hake Huang <> wrote:

Hi All,

I am working on enable NXP EDMA drivers to Zephyr DMA framework, and I have two DMA API changes need to discussion.
in this PR, I add chain_link by using the dest_chaining_en(Major) and source_chaining_en(minor).
in this PR, two helper APIs is added
dma_api_request_channel request_channel;
dma_api_release_channel release_channel;
the two APIs are for DMA engine which is capable to dynamically allocate its channels to different DMA requests. and a filter is also added in case of special DMA channel features.

Slack topic discussion is here

Can this topic be scheduled in next API meeting? Thanks.

I wonder if we should pull this into a separate PR. I think a fair amount of the code for these APIs could be generic.

For example I think we can use some of the generic devicetree properties in "dts/bindings/dma/dma-controller.yaml”. The number space allocation code seems pretty generic, even if it just library code used by all the drivers.

- k

Join to automatically receive all group messages.