Re: [PATCH v3 2/4] of: move of_dma_configure() to device, c to help re-use

2015-01-23 Thread Rob Herring
On Fri, Jan 23, 2015 at 12:19 PM, Murali Karicheri wrote: > On 01/09/2015 10:34 AM, Rob Herring wrote: >> >> On Thu, Jan 8, 2015 at 4:24 PM, Arnd Bergmann wrote: >>> >>> On Thursday 08 January 2015 14:26:36 Murali Karicheri wrote: On 01/08/2015 03:40 AM, Arnd Bergmann wrote: > >

Re: [PATCH v3 2/4] of: move of_dma_configure() to device,c to help re-use

2015-01-23 Thread Murali Karicheri
On 01/09/2015 10:34 AM, Rob Herring wrote: On Thu, Jan 8, 2015 at 4:24 PM, Arnd Bergmann wrote: On Thursday 08 January 2015 14:26:36 Murali Karicheri wrote: On 01/08/2015 03:40 AM, Arnd Bergmann wrote: On Wednesday 07 January 2015 17:37:56 Rob Herring wrote: On Wed, Jan 7, 2015 at 12:49 PM,

Re: [PATCH v3 2/4] of: move of_dma_configure() to device, c to help re-use

2015-01-09 Thread Rob Herring
On Thu, Jan 8, 2015 at 4:24 PM, Arnd Bergmann wrote: > On Thursday 08 January 2015 14:26:36 Murali Karicheri wrote: >> On 01/08/2015 03:40 AM, Arnd Bergmann wrote: >> > On Wednesday 07 January 2015 17:37:56 Rob Herring wrote: >> >> On Wed, Jan 7, 2015 at 12:49 PM, Murali Karicheri >> >> wrote: >

Re: [PATCH v3 2/4] of: move of_dma_configure() to device, c to help re-use

2015-01-08 Thread Arnd Bergmann
On Thursday 08 January 2015 18:44:31 Murali Karicheri wrote: > The grep of dma-ranges for arch/arm shows the size used is mask + 1 as > > ./boot/dts/keystone.dtsi: dma-ranges = <0x8000 0x8 > 0x > 0x8000>; > ./boot/dts/keystone.dtsi: dma-ranges;

Re: [PATCH v3 2/4] of: move of_dma_configure() to device,c to help re-use

2015-01-08 Thread Murali Karicheri
On 01/08/2015 05:24 PM, Arnd Bergmann wrote: On Thursday 08 January 2015 14:26:36 Murali Karicheri wrote: On 01/08/2015 03:40 AM, Arnd Bergmann wrote: On Wednesday 07 January 2015 17:37:56 Rob Herring wrote: On Wed, Jan 7, 2015 at 12:49 PM, Murali Karicheri wrote: + ret = of_dma_get_

Re: [PATCH v3 2/4] of: move of_dma_configure() to device, c to help re-use

2015-01-08 Thread Arnd Bergmann
On Thursday 08 January 2015 14:26:36 Murali Karicheri wrote: > On 01/08/2015 03:40 AM, Arnd Bergmann wrote: > > On Wednesday 07 January 2015 17:37:56 Rob Herring wrote: > >> On Wed, Jan 7, 2015 at 12:49 PM, Murali Karicheri > >> wrote: > >> > >>> + ret = of_dma_get_range(np,&dma_addr,&paddr

Re: [PATCH v3 2/4] of: move of_dma_configure() to device,c to help re-use

2015-01-08 Thread Murali Karicheri
On 01/08/2015 03:40 AM, Arnd Bergmann wrote: On Wednesday 07 January 2015 17:37:56 Rob Herring wrote: On Wed, Jan 7, 2015 at 12:49 PM, Murali Karicheri wrote: + ret = of_dma_get_range(np,&dma_addr,&paddr,&size); + if (ret< 0) { + dma_addr = offset = 0; +

Re: [PATCH v3 2/4] of: move of_dma_configure() to device, c to help re-use

2015-01-08 Thread Arnd Bergmann
On Wednesday 07 January 2015 17:37:56 Rob Herring wrote: > On Wed, Jan 7, 2015 at 12:49 PM, Murali Karicheri wrote: > > > + ret = of_dma_get_range(np, &dma_addr, &paddr, &size); > > + if (ret < 0) { > > + dma_addr = offset = 0; > > + size = dev->coherent_dm

Re: [PATCH v3 2/4] of: move of_dma_configure() to device, c to help re-use

2015-01-07 Thread Rob Herring
On Wed, Jan 7, 2015 at 12:49 PM, Murali Karicheri wrote: > Move of_dma_configure() to device.c so that same function can be re-used > for PCI devices to obtain DMA configuration from DT. Also add a second > argument so that for PCI, DT node of root bus host bridge can be used to > obtain the DMA c

[PATCH v3 2/4] of: move of_dma_configure() to device, c to help re-use

2015-01-07 Thread Murali Karicheri
Move of_dma_configure() to device.c so that same function can be re-used for PCI devices to obtain DMA configuration from DT. Also add a second argument so that for PCI, DT node of root bus host bridge can be used to obtain the DMA configuration for the slave PCI device. Additionally fix the dma-ra