lkml.org 
[lkml]   [2011]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2 08/20] dmaengine/amba-pl08x: support runtime PM
On 08/01/2011 03:56 PM, Russell King - ARM Linux wrote:
> I think a primecell's probe function should look like this:
>
> primecell_probe()
> {
> ret = amba_request_regions(adev, NULL);
> if (ret)
> return ret;
>
> ... allocate stuff, don't access primecell though ...
>
> pm_runtime_set_active(&adev->dev);
> pm_runtime_enable(&adev->dev);
>
> ... get clocks and enable them, do rest of init ...
>
> pm_runtime_put_sync(&adev->dev);
> return 0;
> }

Ok. I didn't had much knowhow of pm_runtime* framework. I will
send V3 for this patch alone, please see if that one is fine or still
needs some updation.

Thanks for your help.

--
viresh


\
 
 \ /
  Last update: 2011-08-01 13:59    [W:0.157 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site