lkml.org 
[lkml]   [2013]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: System suspend states and device driver suspend() callback
Date


在 2013-8-16,下午7:22,"Rafael J. Wysocki" <rjw@sisk.pl> 写道:

> On Friday, August 16, 2013 04:06:26 PM Li Yang wrote:
>> Hi Guys,
>>
>> Is there a standard way for the device drivers to know if the system
>> is going to “standby” mode or “mem” mode when the suspend() callbacks
>> are called?
>
> No, there's none.
>
> What do you need that for?

Some chips like ours are putting the on-chip devices into different low power states when entering different system low power states. When we enter system standby, on-chip devices are clock gated. While entering suspend to ram, on-chip devices are power gated. We want to driver to act differently too when entering different suspend states.

- Leo

>
> Rafael
>
>
\
 
 \ /
  Last update: 2013-08-16 19:21    [W:0.107 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site