lkml.org 
[lkml]   [2012]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: pm runtime and system suspend resume
From
2012/6/21 Alan Stern <stern@rowland.harvard.edu>:
> On Thu, 21 Jun 2012, chao xie wrote:
>
>> I check the code, __device_suspend will invoke dev->pm_domain->ops
>> first if dev->pm_domain is not NULL.
>> Taking "suspend" as esample, i can do the following things in the
>> dev->pm_domain->ops->suspend
>> 1. invoke dev->driver->pm->suspend for suspending the device
>> 2. do what we do in dev->pm_domain->ops->runtime_suspend for
>> suspending the surrounded logic, for example, shutdown the phy or
>> clocks.
>> So is above implementation fine?
>
> Yes, that sounds like it will work.  Watch out for the case where your
> device is already runtime-suspended when a system suspend occurs.
>
> Have you read section 6 in Documentation/power/runtime_pm.txt?  It is
> related to your question.
>
I will read the document. Thanks very much.

> Alan Stern
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2012-06-22 03:21    [W:0.075 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site