Subject: [PATCH] IMX/SDMA : save the real count for one DMA transaction.

From: [email-masked] (Huang Shijie)
Date: Wed, 23 Nov 2011 19:13:23 +0800

>>>> +	/* save the real count we received or transmitted. */
>>>> +	chan->private = (void *)count;
>>> And if someone later needs another variable which is private?
>>>
>> I ever wanted to add an new parameter `void *` to dma_aync_tx_callback,
>> but it seemed i have
>> to change a lot of files.
>>
>> Do you have any better suggestion?
> Use a private struct and put count in there.
>
Where to put the private struct? in the imx-sdma.c ?
If i put it there, how can i get it in the UART driver with the current
DMA API?

thanks
Huang Shijie