Re: [RFC PATCH] dma: pl330: add Power Management support

2014-09-08 Thread Krzysztof Kozlowski
On pon, 2014-09-08 at 10:11 +0200, Krzysztof Kozlowski wrote: > On pią, 2014-09-05 at 17:23 +0200, Lars-Peter Clausen wrote: > > On 09/05/2014 05:06 PM, Krzysztof Kozlowski wrote: > > [...] > > > @@ -2168,11 +2199,23 @@ static void pl330_issue_pending(struct dma_chan > > > *chan) > > > { > > >

Re: [RFC PATCH] dma: pl330: add Power Management support

2014-09-08 Thread Krzysztof Kozlowski
On pon, 2014-09-08 at 10:06 +0200, Michal Simek wrote: > On 09/05/2014 05:06 PM, Krzysztof Kozlowski wrote: > > This patch adds both normal PM suspend/resume support and runtime PM > > support to pl330 DMA engine driver. > > > > The runtime power management for pl330 DMA driver allows gating of AM

Re: [RFC PATCH] dma: pl330: add Power Management support

2014-09-08 Thread Krzysztof Kozlowski
On pią, 2014-09-05 at 17:23 +0200, Lars-Peter Clausen wrote: > On 09/05/2014 05:06 PM, Krzysztof Kozlowski wrote: > [...] > > @@ -2168,11 +2199,23 @@ static void pl330_issue_pending(struct dma_chan > > *chan) > > { > > struct dma_pl330_chan *pch = to_pchan(chan); > > unsigned long flags;

Re: [RFC PATCH] dma: pl330: add Power Management support

2014-09-08 Thread Michal Simek
On 09/05/2014 05:06 PM, Krzysztof Kozlowski wrote: > This patch adds both normal PM suspend/resume support and runtime PM > support to pl330 DMA engine driver. > > The runtime power management for pl330 DMA driver allows gating of AMBA > clock (PDMA) in FSYS clock domain, when the device is not pr

Re: [RFC PATCH] dma: pl330: add Power Management support

2014-09-05 Thread Lars-Peter Clausen
On 09/05/2014 05:06 PM, Krzysztof Kozlowski wrote: [...] @@ -2168,11 +2199,23 @@ static void pl330_issue_pending(struct dma_chan *chan) { struct dma_pl330_chan *pch = to_pchan(chan); unsigned long flags; + bool power_up; spin_lock_irqsave(&pch->lock, flags); +

[RFC PATCH] dma: pl330: add Power Management support

2014-09-05 Thread Krzysztof Kozlowski
This patch adds both normal PM suspend/resume support and runtime PM support to pl330 DMA engine driver. The runtime power management for pl330 DMA driver allows gating of AMBA clock (PDMA) in FSYS clock domain, when the device is not processing any requests. This is necessary to enter W-AFTR low