On Nov 24 2008, at 17:14, Alan Stern was caught saying: > How does ACPI go about doing the equivalent thing? Maybe you can copy > that approach. ACPI hides a lot of the EC magic from us, but it looks like it uses the platform_notify() and platform_remove_notify() handlers to track what devices are added to the system. I think I can make use of the same to set dev->wakeup_capable for the devices I care about, store the pointers to those devices, and then configure the EC bits as needed when we suspend by looking at the result of device_may_wakeup(). I might not need a callback afterall. Thanks, ~Deepak -- Deepak Saxena http://www.greenbasement.info _____ __o Kernel Hacker, One Laptop Per Child (o> ------ -\<, Give One Laptop, Get One Laptop //\ ----- ( )/ ( ) http://www.amazon.com/xo V_/_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm