From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Maksim Rayskiy <maksim.rayskiy@gmail.com>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: Function to tell S1 standby from STR
Date: Sat, 27 Aug 2011 00:45:41 +0200 [thread overview]
Message-ID: <201108270045.41314.rjw@sisk.pl> (raw)
In-Reply-To: <CAFVyGY7NE4P4hZWSkzOhYbD-vX6b6oZT9y15LeZsQeh8S-u8iA@mail.gmail.com>
Hi,
On Saturday, August 27, 2011, Maksim Rayskiy wrote:
> Hi,
>
> How can a driver in a suspend/resume call tell if the request is for
> STR or S1? On SoCs I am working with drivers need to take some extra
> steps to preserve context when STR is requested.
>
> I had to add platform-dependent api to do that, but I figured I am not
> the only one having to deal with this. There are some comments in
> arch/arm/mach-at91/pm.c regarding having to treat S1 and S3
> differently because of wakeup source dependency on clock.
>
> And unfortunately these differences has to be taken care of in the
> drivers, not platform code, because in some cases only device driver
> knows what represents the hardware context that needs to be saved.
Why not to save the same stuff for "S1" and "S3"?
Rafael
next prev parent reply other threads:[~2011-08-26 22:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-26 22:32 Function to tell S1 standby from STR Maksim Rayskiy
2011-08-26 22:45 ` Rafael J. Wysocki [this message]
2011-08-26 23:00 ` Maksim Rayskiy
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=201108270045.41314.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-pm@lists.linux-foundation.org \
--cc=maksim.rayskiy@gmail.com \
/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