Re: [RFC] Tying sysfs "wakeup" file to platform-level?handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 25 2008, at 10:09, Alan Stern was caught saying:
> On Mon, 24 Nov 2008, Deepak Saxena wrote:
> 
> > > So the platform code could initialize the "can_wakeup" setting when it
> > > first detects and registers the device.  And you could add a
> > > "set_wakeup" function pointer to struct platform_device, which the
> > > bus-level suspend and resume routines would invoke to enable or disable
> > > remote wakeup, as appropriate.  In the static structures these function 
> > > pointers would point to routines that set or clear the appropriate bits 
> > > in your Embedded Controller.
> > 
> > Just thought of something. Not all the devices we can wakeup on are
> > platform devices. The WLAN specifically is an on-board USB device with
> > a sideband wakeup signal connected to the EC. So instead I'll make the
> > set_wakeup() ptr a member of struct device and call it in device_suspend().
> 
> No, don't do that.  If the device has a sideband wakeup signal then the 
> device's driver should be aware of that signal.  So the driver should 
> be modified, not the device core.  The driver can ask the platform code 
> to do whatever is necessary.

What is the method to connect between the driver's WOL code and the platform
code in this situation? 

tnx,
~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

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux