Re: [RFC/PATCH v2 2/2] drivers: dma-contiguous: add initialization from device tree

2013-04-30 Thread Marek Szyprowski
Hello, On 4/29/2013 11:21 PM, Marc C wrote: /** * dma_contiguous_reserve() - reserve area(s) for contiguous memory handling * @limit: End address of the reserved memory (optional, 0 for any). @@ -149,6 +200,10 @@ void __init dma_contiguous_reserve(phys_addr_t limit)

Re: [RFC/PATCH v2 2/2] drivers: dma-contiguous: add initialization from device tree

2013-04-12 Thread Marek Szyprowski
Hi Laura, Thanks for your thorough review! I will fix all the pointed issues once the main point of this patch set (using /chosen/contiguous-memory for CMA DT bindings) will be agreed and accepted. On 4/11/2013 7:56 PM, Laura Abbott wrote: Hi, On 4/11/2013 4:22 AM, Marek Szyprowski wrote: ...

[RFC/PATCH v2 2/2] drivers: dma-contiguous: add initialization from device tree

2013-04-11 Thread Marek Szyprowski
Add device tree support for contiguous memory regions defined in device tree. Initialization is done in 2 steps. First, the contiguous memory is reserved, what happens very early, when only flattened device tree is available. Then on device initialization the corresponding cma regions are assigned

Re: [RFC/PATCH v2 2/2] drivers: dma-contiguous: add initialization from device tree

2013-04-11 Thread Laura Abbott
Hi, On 4/11/2013 4:22 AM, Marek Szyprowski wrote: ... + diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c index 01fe743..6a8abab 100644 --- a/drivers/base/dma-contiguous.c +++ b/drivers/base/dma-contiguous.c @@ -24,6 +24,9 @@ #include linux/memblock.h #include