From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tehn Yit Chin Subject: Re: apm for individual devices Date: Tue, 07 Mar 2006 12:30:22 +1100 Message-ID: <440CE22E.8060601@greyinnovation.com> References: <440CD773.6010401@greyinnovation.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <440CD773.6010401@greyinnovation.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org To: Tehn Yit Chin Cc: linux-pm@lists.osdl.org List-Id: linux-pm@vger.kernel.org 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.