From: Tehn Yit Chin <tehn-yit.chin@greyinnovation.com>
To: Tehn Yit Chin <tehn-yit.chin@greyinnovation.com>
Cc: linux-pm@lists.osdl.org
Subject: Re: apm for individual devices
Date: Tue, 07 Mar 2006 12:30:22 +1100 [thread overview]
Message-ID: <440CE22E.8060601@greyinnovation.com> (raw)
In-Reply-To: <440CD773.6010401@greyinnovation.com>
Tehn Yit Chin wrote:
> Hi all,
>
> How does one use the sysfs entry of power/state that I can find for each
> registered device? Eg, for the i2c device on my s3c2410 cpu, I find the
> following entry,
>
> /sys/devices/platform/s3c2410-i2c/power/state
>
> I tried echoing "mem" into it, but nothing seems to happen.
>
> What I am looking for is a way of suspending and resuming individual
> devices within the PM architecture?
>
> Any pointers would be greatly appreciated.
After reading through the mailing list archives, I sort of work it out. ie
echo -n 1 > /sys/devices/platform/s3c2410-i2c/power/state
puts the device into suspend mode.
However, the driver's behaviour doesn't change if I echo a different
number into it. What does this number suppose to do?
Tehn Yit Chin
Software Engineer, Grey Innovation Pty. Ltd.
next prev parent reply other threads:[~2006-03-07 1:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-07 0:44 apm for individual devices Tehn Yit Chin
2006-03-07 1:30 ` Tehn Yit Chin [this message]
2006-03-07 2:58 ` Patrick Mochel
2006-03-08 15:50 ` Pavel Machek
2006-03-07 3:50 ` Adam Belay
2006-03-07 4:06 ` Tehn Yit Chin
-- strict thread matches above, loose matches on Subject: below --
2006-03-07 2:11 Li Qiang-E3422C
2006-03-08 15:51 ` Pavel Machek
2006-03-09 1:57 ` Tehn Yit Chin
2006-03-09 1:55 ` Pavel Machek
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=440CE22E.8060601@greyinnovation.com \
--to=tehn-yit.chin@greyinnovation.com \
--cc=linux-pm@lists.osdl.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