public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* Suspend to RAm query
@ 2011-06-28 13:58 deepaksi
  2011-07-03  7:04 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: deepaksi @ 2011-06-28 13:58 UTC (permalink / raw)
  To: linux-pm, deepak.sikri79, linux-kernel

Hi All,

I have a very basic query w.r.t the place to handle the standby/suspend
process for the devices in the system.

Should it be done at the driver level or in the machine/platform
specific code ?

There are instances where I need some specific functionality in the
standby mode, or some extra functionality
in the suspend mode at the device level. Is that the reason for
differentiating between the suspend and standby at
the platform code level, because in platform code we get different
states signifying a suspend or a standby ?

Thanks
Deepak

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Suspend to RAm query
  2011-06-28 13:58 Suspend to RAm query deepaksi
@ 2011-07-03  7:04 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2011-07-03  7:04 UTC (permalink / raw)
  To: deepak.sikri79; +Cc: linux-pm, linux-kernel, deepaksi

Hi,

On Tuesday, June 28, 2011, deepaksi wrote:
> Hi All,
> 
> I have a very basic query w.r.t the place to handle the standby/suspend
> process for the devices in the system.
> 
> Should it be done at the driver level or in the machine/platform
> specific code ?
> 
> There are instances where I need some specific functionality in the
> standby mode, or some extra functionality
> in the suspend mode at the device level. Is that the reason for
> differentiating between the suspend and standby at
> the platform code level, because in platform code we get different
> states signifying a suspend or a standby ?

Yes, it is.

The platform suspend callbacks in strcut platform_suspend_ops (as defined
in include/linux/suspend.h) take a suspend_state_t argument indicating
what state is being requested.  You can get the information from there,
if I understood your problem description correctly.

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-03  7:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-28 13:58 Suspend to RAm query deepaksi
2011-07-03  7:04 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox