public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* PM interface to suspend/resume individual/specific device
@ 2009-07-05 11:33 HU TAO-TGHK48
  2009-07-05 21:30 ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: HU TAO-TGHK48 @ 2009-07-05 11:33 UTC (permalink / raw)
  To: linux-pm

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






 

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

end of thread, other threads:[~2009-07-06 20:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-05 11:33 PM interface to suspend/resume individual/specific device HU TAO-TGHK48
2009-07-05 21:30 ` Rafael J. Wysocki
2009-07-06 11:01   ` HU TAO-TGHK48
2009-07-06 20:32     ` 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