29 Jan
2013
29 Jan
'13
11:27 a.m.
On Tuesday 29 January 2013, Padma Venkat wrote:
of_dma_simple_xlate is just passing the dma channel number to the filter function. But I also need to compare against device node as my requested channel can belong to any of the available dma controller on SoC. So I implemented a xlate which passes the whole dma_spec.
Hmm, this seems to be a universal requirement for anyone using the simple xlate function. Jon, how did you expect drivers to handle this? Assuming that there is only one DMA controller in the system does not sound like a good idea.
Padma, please have a look at how I did this in the dw_dma patch I posted yesterday.
Arnd