public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Fan resume handling - ACPI resume callbacks?
Date: Tue, 20 Sep 2005 02:12:09 +0100	[thread overview]
Message-ID: <20050920011209.GA15933@srcf.ucam.org> (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?

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

             reply	other threads:[~2005-09-20  1:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-20  1:12 Matthew Garrett [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-09-20  1:42 Fan resume handling - ACPI resume callbacks? Li, Shaohua

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=20050920011209.GA15933@srcf.ucam.org \
    --to=mjg59-1xo5oi07kqx4cg9nei1l7q@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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