From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bharata B Rao Subject: Re: device states supported by current drivers Date: Mon, 11 Aug 2003 17:59:21 +0900 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <3F375AE9.1080202@samsung.com> References: <3F36F140.6010701@samsung.com> <1060586777.12397.3.camel@bacchus.gpphy.uni-duesseldorf.de> Reply-To: rao.bharata-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <1060586777.12397.3.camel-s1IKGncK6J2OERECOqmV57dB6IYNvbhm87tLKu7D3g4@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Knut Neumann Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Knut Neumann wrote: > Am Mo, 2003-08-11 um 03.28 schrieb Bharata B Rao: >> >>Are there any device drivers in 2.4/2.6 kernels which actually support >>different low power states as defined by ACPI ? The reason I ask is I >>can't really see any device actually implementing the new driver model >>suspend routine which is used by ACPI. > > > What about the e100 driver? See drivers/net/e100/e100_main.c > Ok, I can see that now. Thanks. Two more dumb questions (sorry for asking them here in devel list) 1. When a particular sleep state (S1 - S5) is entered via /proc/acpi/sleep, the devices are put to one of the D states (D0 - D3) From the code (device_suspend, e100_suspend, pci_set_power_state), it looks like the sleep states (Sx) are directly translated to device states (Dx) when it comes to device suspend. i,e., when I say enter S2, it will lead to device entering to D2. Is this how it should be ? 2. Is there no interface exported by ACPI to control the devices independently. i,e., can't I just control the power state of a device from user space ? Currently I can see it only happens via /proc/acpi/sleep, which is for controlling the entire system sleep state. Regards, Bharata. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01