From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: deepak.sikri79@gmail.com
Cc: linux-pm@lists.linux-foundation.org,
deepaksi <deepak.sikri@st.com>,
linux-kernel@vger.kernel.org
Subject: Re: [linux-pm] Suspend to RAm query
Date: Sun, 3 Jul 2011 09:04:08 +0200 [thread overview]
Message-ID: <201107030904.08190.rjw@sisk.pl> (raw)
In-Reply-To: <4E09DE03.3090100@st.com>
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
prev parent reply other threads:[~2011-07-03 7:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-28 13:58 Suspend to RAm query deepaksi
2011-07-03 7:04 ` Rafael J. Wysocki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201107030904.08190.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=deepak.sikri79@gmail.com \
--cc=deepak.sikri@st.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox