Commit 70805e9d authored by Robin Gong's avatar Robin Gong Committed by Nitin Garg
Browse files

MLK-11358-3: dma: imx-sdma: add virt-dma support



Old sdma can't support multi instances, because next transfer will return
error if the last transfer not done(sdmac->status == DMA_IN_PROGRESS). virt
dma is a common framework for versus dma drivers, and it's support multi
instances, driver can dynamicly alloc description and add it to list which
will be handled in the last sdma transfer done later.

Another advantage of this patch is to clean up the constrain of max bd numer:
--#define NUM_BD (int)(PAGE_SIZE / sizeof(struct sdma_buffer_descriptor))
in other words, now sdma driver can support any length data now.

Meanwhile, remove sdma_load_context() in prep_* everytime, since it can do
only once in config channel.

Signed-off-by: default avatarRobin Gong <b38343@freescale.com>
parent 53d0a60c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment