Re: [RFC PATCH] of: DMA helpers: manage generic requests specification

2012-03-14 Thread Nicolas Ferre
On 03/05/2012 04:36 PM, Grant Likely : On Wed, Feb 29, 2012 at 03:54:08PM +0100, Nicolas Ferre wrote: By making DMA controllers register a generic translation function, we allow the management of any type of DMA requests specification. The void * output of an of_dma_xlate() function that will

Re: [RFC PATCH] of: DMA helpers: manage generic requests specification

2012-03-14 Thread Stephen Warren
On 03/14/2012 11:47 AM, Nicolas Ferre wrote: ... I do have the will to avoid the treats of memory corruption in case of malformed DT data, as Stephen was saying. But, on the other hand I do not know really if this can happen: if the .xlate() function which is provided by the DMA controller is

Re: [RFC PATCH] of: DMA helpers: manage generic requests specification

2012-03-05 Thread Cousson, Benoit
Hi Nico, On 2/29/2012 3:54 PM, Nicolas Ferre wrote: By making DMA controllers register a generic translation function, we allow the management of any type of DMA requests specification. The void * output of an of_dma_xlate() function that will be implemented by the DMA controller can carry any

Re: [RFC PATCH] of: DMA helpers: manage generic requests specification

2012-03-05 Thread Cousson, Benoit
On 2/29/2012 9:54 PM, Stephen Warren wrote: Nicolas Ferre wrote at Wednesday, February 29, 2012 7:54 AM: By making DMA controllers register a generic translation function, we allow the management of any type of DMA requests specification. The void * output of an of_dma_xlate() function that

Re: [RFC PATCH] of: DMA helpers: manage generic requests specification

2012-03-05 Thread Grant Likely
On Wed, Feb 29, 2012 at 03:54:08PM +0100, Nicolas Ferre wrote: By making DMA controllers register a generic translation function, we allow the management of any type of DMA requests specification. The void * output of an of_dma_xlate() function that will be implemented by the DMA controller

RE: [RFC PATCH] of: DMA helpers: manage generic requests specification

2012-03-05 Thread Stephen Warren
Cousson, Benoit wrote at Monday, March 05, 2012 6:14 AM: On 2/29/2012 9:54 PM, Stephen Warren wrote: Nicolas Ferre wrote at Wednesday, February 29, 2012 7:54 AM: By making DMA controllers register a generic translation function, we allow the management of any type of DMA requests

Re: [RFC PATCH] of: DMA helpers: manage generic requests specification

2012-03-05 Thread Russell King - ARM Linux
On Mon, Mar 05, 2012 at 10:30:43AM -0800, Stephen Warren wrote: Cousson, Benoit wrote at Monday, March 05, 2012 6:14 AM: Beside u32 and string, do we know what kind of parameters we can expect to retrieve? Because we can potentially reduce the scope to these two types only. I wondered

[RFC PATCH] of: DMA helpers: manage generic requests specification

2012-02-29 Thread Nicolas Ferre
By making DMA controllers register a generic translation function, we allow the management of any type of DMA requests specification. The void * output of an of_dma_xlate() function that will be implemented by the DMA controller can carry any type of dma-request argument. The DMA client will

RE: [RFC PATCH] of: DMA helpers: manage generic requests specification

2012-02-29 Thread Stephen Warren
Nicolas Ferre wrote at Wednesday, February 29, 2012 7:54 AM: By making DMA controllers register a generic translation function, we allow the management of any type of DMA requests specification. The void * output of an of_dma_xlate() function that will be implemented by the DMA controller can