* Fan resume handling - ACPI resume callbacks?
@ 2005-09-20 1:12 Matthew Garrett
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Garrett @ 2005-09-20 1:12 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Fan resume handling - ACPI resume callbacks?
@ 2005-09-20 1:42 Li, Shaohua
0 siblings, 0 replies; 2+ messages in thread
From: Li, Shaohua @ 2005-09-20 1:42 UTC (permalink / raw)
To: Matthew Garrett; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi,
>
>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?
The ACPI driver model isn't plugged into Linux driver tree, so the
.resume method will never get called. I recently sent out some patches
into the list
(http://sourceforge.net/mailarchive/forum.php?thread_id=8172458&forum_id
=6102). With the patches, the .resume will work. But Dominik thought we
should not introduce acpi bus, instead we should make most ACPI devices
as platform devices. I'm still evaluating it.
Thanks,
Shaohua
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-20 1:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-20 1:12 Fan resume handling - ACPI resume callbacks? Matthew Garrett
-- strict thread matches above, loose matches on Subject: below --
2005-09-20 1:42 Li, Shaohua
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox