linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: NetDev <netdev@vger.kernel.org>,
	USB list <linux-usb@vger.kernel.org>,
	linux-hotplug@vger.kernel.org,
	Kernel development list <linux-kernel@vger.kernel.org>,
	linux-input@vger.kernel.org,
	Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: Problems with remote-wakeup settings
Date: Sat, 6 Mar 2010 22:25:09 +0100	[thread overview]
Message-ID: <201003062225.09514.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1003061601520.23895-100000@netrider.rowland.org>

On Saturday 06 March 2010, Alan Stern wrote:
> On Sat, 6 Mar 2010, Rafael J. Wysocki wrote:
> 
> > > It's not difficult in theory to tie together the WoL setting and the
> > > wakeup flag:
> > > 
> > > 	If ethtool changes the WoL setting, the driver's ioctl handler
> > > 	should make the corresponding change to the wakeup flag.
> > > 
> > > 	If ethtool queries the WoL setting, the ioctl handler should
> > > 	check the wakeup flag.  If the flag is off, it should report 
> > > 	that WoL is disabled; if the flag is on, it should report that 
> > > 	WoL is enabled.  (The same check should be made in the suspend
> > > 	routine.)
> > 
> > That's done this way already in all drivers I know, but we need a hook
> > from wake_store() back to the driver.
> 
> What for?  wake_store() can't be called during a sleep transition
> (because tasks are frozen) or while the system is asleep.  And if it is
> called at any other time, the driver doesn't need to know until either
> its ioctl handler or its suspend method runs.

Right.

That means, though, that the network adapter drivers' "get WoL" routines
should check should_wakeup too.  They don't do that right now, but IMO it's
reasonable to request that they be modified.

Adding netdev to the Cc list.

Rafael

      reply	other threads:[~2010-03-06 21:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-05 16:23 Problems with remote-wakeup settings Alan Stern
2010-03-05 20:38 ` Rafael J. Wysocki
     [not found]   ` <201003052138.53647.rjw-KKrjLPT3xs0@public.gmane.org>
2010-03-05 20:59     ` Alan Stern
2010-03-05 21:08       ` Oliver Neukum
2010-03-05 22:04         ` Rafael J. Wysocki
2010-03-06  4:16           ` Alan Stern
     [not found]             ` <Pine.LNX.4.44L0.1003052314130.10381-100000-pYrvlCTfrz9XsRXLowluHWD2FQJk+8+b@public.gmane.org>
2010-03-06  4:36               ` Andrey Borzenkov
2010-03-05 21:59       ` Rafael J. Wysocki
2010-03-06  4:34         ` Alan Stern
2010-03-06 20:54           ` Rafael J. Wysocki
2010-03-06 21:05             ` Alan Stern
2010-03-06 21:25               ` Rafael J. Wysocki [this message]

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=201003062225.09514.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=linux-hotplug@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /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;
as well as URLs for NNTP newsgroup(s).