From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Garrett Subject: Fan resume handling - ACPI resume callbacks? Date: Tue, 20 Sep 2005 02:12:09 +0100 Message-ID: <20050920011209.GA15933@srcf.ucam.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org I'm trying to implement resume support for the fan driver. From what I can tell through experimentation, the easiest solution is to check if the fan claims to be switched on, and if so to switch it off and on again. However, my resume callback never seems to be called. I've got static struct acpi_driver acpi_fan_driver = { .name = ACPI_FAN_DRIVER_NAME, .class = ACPI_FAN_CLASS, .ids = ACPI_FAN_HID, .ops = { .add = acpi_fan_add, .remove = acpi_fan_remove, .resume = acpi_fan_resume, }, }; but adding printks to acpi_fan_resume doesn't seem to result in anything in the kernel logs. Is this stuff supposed to work? -- Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php