Skip to contentSkip to conversation

Fan resume handling - ACPI resume callbacks?

DISCUSSION Matthew Garrett 1 participant 1 message Sep 20, 2005 ACPI

lore
Share & tools
lore
#0 lore raw

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?

Signature · 8 lines
Matthew Garrett | [email protected]


-------------------------------------------------------
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