Re: [PATCH] dma: tegra: implement suspend/resume callbacks

Laxman Dewangan
2013-04-30T12:47:18Z

On Tuesday 30 April 2013 04:00 PM, Vinod Koul wrote:
> On Wed, Apr 24, 2013 at 03:24:27PM +0530, Laxman Dewangan wrote:
>> +
>> + /* Enable clock before accessing register */
>> + ret = tegra_dma_runtime_resume(dev);
>> + if (ret < 0)
>> + return ret;
> You dont seem to handle suspend when DMA is active? Otherwise looks fine.
> Stephen, you okay with this patch?

The client of dma need to gracefully stop the transfer and then do
suspend himself.
Also driver suspend can happen even if there is no allocation of dma. In
this case, clock is disabled so enabling explicitly here.