From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: HU TAO-TGHK48 <taohu@motorola.com>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: PM interface to suspend/resume individual/specific device
Date: Sun, 5 Jul 2009 23:30:48 +0200 [thread overview]
Message-ID: <200907052330.48382.rjw@sisk.pl> (raw)
In-Reply-To: <F12CE1A68F023D498A2691C7B539311503655A9A@ZMY16EXM66.ds.mot.com>
On Sunday 05 July 2009, HU TAO-TGHK48 wrote:
> Below command would suspend all of devices and system
> # echo mem > /sys/power/state
>
> How to just suspend/resume one specific devices? E.g.
> /sys/devices/platform/serial8250
>
> It would be useful to test the stability of PM interface of individual
> driver.
> If drivers called earlier refuse to suspend then not able to reach the
> suspend/resume function of the specific driver.
>
> And it would be useful for automatic testing since a script can
> suspend/resume the specific device for many times without manual
> operation.
>
> Is it possible to add "state" for each device?
> E.g.
> # echo mem > /sys/devices/platform/serial8250/power/state
No, and you can't suspend individual devices in general. There is such a
mechanism for USB devices.
The problem is that suspend while entering a system sleep state is generally
a different operation from a suspend done at run time and the latter wouldn't
be suitable for testing the former.
If you need to test the suspend-resume of a driver, please use the
/sys/power/pm_test interface (it works on the entire system, but it doesn't
complete the suspend, so it's suitable for testing).
Thanks,
Rafael
next prev parent reply other threads:[~2009-07-05 21:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-05 11:33 PM interface to suspend/resume individual/specific device HU TAO-TGHK48
2009-07-05 21:30 ` Rafael J. Wysocki [this message]
2009-07-06 11:01 ` HU TAO-TGHK48
2009-07-06 20:32 ` Rafael J. Wysocki
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=200907052330.48382.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-pm@lists.linux-foundation.org \
--cc=taohu@motorola.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