Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-25 Thread Santosh Shilimkar
Arnd, Rob, On Friday 14 March 2014 01:25 PM, Arnd Bergmann wrote: > On Friday 14 March 2014, Rob Herring wrote: >> On Wed, Mar 12, 2014 at 11:58 AM, Arnd Bergmann wrote: >>> On Wednesday 12 March 2014 15:19:48 Grygorii Strashko wrote: > Isn't the question here how do we handle restrictions

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-25 Thread Santosh Shilimkar
Arnd, Rob, On Friday 14 March 2014 01:25 PM, Arnd Bergmann wrote: On Friday 14 March 2014, Rob Herring wrote: On Wed, Mar 12, 2014 at 11:58 AM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 12 March 2014 15:19:48 Grygorii Strashko wrote: Isn't the question here how do we handle restrictions

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-14 Thread Arnd Bergmann
On Friday 14 March 2014, Rob Herring wrote: > On Wed, Mar 12, 2014 at 11:58 AM, Arnd Bergmann wrote: > > On Wednesday 12 March 2014 15:19:48 Grygorii Strashko wrote: > >> > Isn't the question here how do we handle restrictions added by the > >> > bus? It seems while this series adds support for

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-14 Thread Rob Herring
On Wed, Mar 12, 2014 at 11:58 AM, Arnd Bergmann wrote: > On Wednesday 12 March 2014 15:19:48 Grygorii Strashko wrote: >> On 03/12/2014 02:15 AM, Rob Herring wrote: >> > On Sun, Mar 9, 2014 at 12:39 AM, Arnd Bergmann wrote: >> >> On Saturday 08 March 2014, Rob Herring wrote: >> >>> On Fri, Mar 7,

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-14 Thread Rob Herring
On Wed, Mar 12, 2014 at 11:58 AM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 12 March 2014 15:19:48 Grygorii Strashko wrote: On 03/12/2014 02:15 AM, Rob Herring wrote: On Sun, Mar 9, 2014 at 12:39 AM, Arnd Bergmann a...@arndb.de wrote: On Saturday 08 March 2014, Rob Herring wrote: On

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-14 Thread Arnd Bergmann
On Friday 14 March 2014, Rob Herring wrote: On Wed, Mar 12, 2014 at 11:58 AM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 12 March 2014 15:19:48 Grygorii Strashko wrote: Isn't the question here how do we handle restrictions added by the bus? It seems while this series adds support for

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-12 Thread Arnd Bergmann
On Wednesday 12 March 2014 15:19:48 Grygorii Strashko wrote: > On 03/12/2014 02:15 AM, Rob Herring wrote: > > On Sun, Mar 9, 2014 at 12:39 AM, Arnd Bergmann wrote: > >> On Saturday 08 March 2014, Rob Herring wrote: > >>> On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann wrote: > >> > a) Follow

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-12 Thread Grygorii Strashko
Hi Rob, Arnd, On 03/12/2014 02:15 AM, Rob Herring wrote: > On Sun, Mar 9, 2014 at 12:39 AM, Arnd Bergmann wrote: >> On Saturday 08 March 2014, Rob Herring wrote: >>> On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann wrote: >> a) Follow what we do for PCI devices: assume that we can do

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-12 Thread Arnd Bergmann
On Wednesday 12 March 2014 15:19:48 Grygorii Strashko wrote: On 03/12/2014 02:15 AM, Rob Herring wrote: On Sun, Mar 9, 2014 at 12:39 AM, Arnd Bergmann a...@arndb.de wrote: On Saturday 08 March 2014, Rob Herring wrote: On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann a...@arndb.de wrote:

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-12 Thread Grygorii Strashko
Hi Rob, Arnd, On 03/12/2014 02:15 AM, Rob Herring wrote: On Sun, Mar 9, 2014 at 12:39 AM, Arnd Bergmann a...@arndb.de wrote: On Saturday 08 March 2014, Rob Herring wrote: On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann a...@arndb.de wrote: a) Follow what we do for PCI devices: assume that we

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-11 Thread Rob Herring
On Sun, Mar 9, 2014 at 12:39 AM, Arnd Bergmann wrote: > On Saturday 08 March 2014, Rob Herring wrote: >> On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann wrote: > >> > a) Follow what we do for PCI devices: assume that we can do DMA_MASK(32) >> > on any device, and have drivers call

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-11 Thread Arnd Bergmann
On Saturday 08 March 2014, Rob Herring wrote: > On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann wrote: > > a) Follow what we do for PCI devices: assume that we can do DMA_MASK(32) > > on any device, and have drivers call dma_set_mask(DMA_MASK(64)) on devices > > that would like to do more than

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-11 Thread Arnd Bergmann
On Saturday 08 March 2014, Rob Herring wrote: On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann a...@arndb.de wrote: a) Follow what we do for PCI devices: assume that we can do DMA_MASK(32) on any device, and have drivers call dma_set_mask(DMA_MASK(64)) on devices that would like to do more

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-11 Thread Rob Herring
On Sun, Mar 9, 2014 at 12:39 AM, Arnd Bergmann a...@arndb.de wrote: On Saturday 08 March 2014, Rob Herring wrote: On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann a...@arndb.de wrote: a) Follow what we do for PCI devices: assume that we can do DMA_MASK(32) on any device, and have drivers call

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-08 Thread Rob Herring
On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann wrote: > On Friday 07 March 2014, Santosh Shilimkar wrote: >> >> + >> >> + ret = dma_set_mask(dev, dma_mask); >> >> + if (ret < 0) { >> >> + dev_err(dev, "failed to set DMA mask %pad\n", _mask); >> >> +

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-08 Thread Rob Herring
On Fri, Mar 7, 2014 at 10:02 AM, Arnd Bergmann a...@arndb.de wrote: On Friday 07 March 2014, Santosh Shilimkar wrote: + + ret = dma_set_mask(dev, dma_mask); + if (ret 0) { + dev_err(dev, failed to set DMA mask %pad\n, dma_mask); + dev-dma_mask =

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-07 Thread Arnd Bergmann
On Friday 07 March 2014, Santosh Shilimkar wrote: > >> + > >> + ret = dma_set_mask(dev, dma_mask); > >> + if (ret < 0) { > >> + dev_err(dev, "failed to set DMA mask %pad\n", _mask); > >> + dev->dma_mask = NULL; > >> + return; > >> + } >

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-07 Thread Arnd Bergmann
On Friday 07 March 2014, Santosh Shilimkar wrote: + + ret = dma_set_mask(dev, dma_mask); + if (ret 0) { + dev_err(dev, failed to set DMA mask %pad\n, dma_mask); + dev-dma_mask = NULL; + return; + } + +

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-06 Thread Santosh Shilimkar
On Friday 07 March 2014 11:49 AM, Rob Herring wrote: > On Thu, Mar 6, 2014 at 3:19 AM, Santosh Shilimkar > wrote: >> From: Grygorii Strashko >> >> Retrieve DMA configuration from DT and setup platform device's DMA >> parameters. >> >> The DMA configuration in DT has to be specified using

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-06 Thread Rob Herring
On Thu, Mar 6, 2014 at 3:19 AM, Santosh Shilimkar wrote: > From: Grygorii Strashko > > Retrieve DMA configuration from DT and setup platform device's DMA > parameters. > > The DMA configuration in DT has to be specified using "dma-ranges" > property if supported. The DMA configuration applied >

[PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-06 Thread Santosh Shilimkar
From: Grygorii Strashko Retrieve DMA configuration from DT and setup platform device's DMA parameters. The DMA configuration in DT has to be specified using "dma-ranges" property if supported. The DMA configuration applied by dt_dma_configure() as following: - call of_get_dma_range() and get

[PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-06 Thread Santosh Shilimkar
From: Grygorii Strashko grygorii.stras...@ti.com Retrieve DMA configuration from DT and setup platform device's DMA parameters. The DMA configuration in DT has to be specified using dma-ranges property if supported. The DMA configuration applied by dt_dma_configure() as following: - call

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-06 Thread Rob Herring
On Thu, Mar 6, 2014 at 3:19 AM, Santosh Shilimkar santosh.shilim...@ti.com wrote: From: Grygorii Strashko grygorii.stras...@ti.com Retrieve DMA configuration from DT and setup platform device's DMA parameters. The DMA configuration in DT has to be specified using dma-ranges property if

Re: [PATCH 4/7] of: configure the platform device dma_mask and dma_pfn_offset

2014-03-06 Thread Santosh Shilimkar
On Friday 07 March 2014 11:49 AM, Rob Herring wrote: On Thu, Mar 6, 2014 at 3:19 AM, Santosh Shilimkar santosh.shilim...@ti.com wrote: From: Grygorii Strashko grygorii.stras...@ti.com Retrieve DMA configuration from DT and setup platform device's DMA parameters. The DMA configuration in DT