All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Bob Copeland <bcopeland@gmail.com>
Cc: Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC v2 2/5] mac80211: inform devices when we are suspending on the stop callback
Date: Wed, 13 May 2009 11:13:29 -0700	[thread overview]
Message-ID: <20090513181329.GA19693@tesla> (raw)
In-Reply-To: <b6c5339f0905131100v5ea764cejf005734ce9289290@mail.gmail.com>

On Wed, May 13, 2009 at 11:00:45AM -0700, Bob Copeland wrote:
> On Wed, May 13, 2009 at 1:20 PM, Luis R. Rodriguez
> <lrodriguez@atheros.com> wrote:
> > On Wed, May 13, 2009 at 2:53 AM, Johannes Berg
> > <johannes@sipsolutions.net> wrote:
> >> On Wed, 2009-05-13 at 05:20 -0400, Luis R. Rodriguez wrote:
> >>> We inform the drivers so they can take appropriate actions during
> >>> suspend for WoW support.
> >>
> >>> -static void ar9170_op_stop(struct ieee80211_hw *hw)
> >>> +static void ar9170_op_stop(struct ieee80211_hw *hw, bool suspend)
> 
> Just curious, why can't the bus suspend method just turn the radio back on?
> You have to set up the wow parameters later anyway.

That's possible too.

> I think it'd be cleaner if the stack knew about WoW somehow rather than
> doing stuff behind its back in the driver.  Then suspend/resume could do
> the right thing (e.g. ops->wow_enable() instead of stop) if the driver was
> WoW-capable.

Agreed, however ath9k is the only card I know how WoW works so far. If
other devices would follow this logic then I think it makes sense to use
something like a cfg callback for wow_enable() -- but then again this is
only done for ath9k for suspend so doing it at suspend saves us a callback.

Thoughts?

  Luis

  reply	other threads:[~2009-05-13 18:13 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-13  9:20 [RFC v2 0/5] WoW suport Luis R. Rodriguez
2009-05-13  9:20 ` [RFC v2 1/5] mac80211: fix idle trigger upon resume Luis R. Rodriguez
2009-05-13  9:20 ` [RFC v2 2/5] mac80211: inform devices when we are suspending on the stop callback Luis R. Rodriguez
2009-05-13  9:53   ` Johannes Berg
2009-05-13 17:20     ` Luis R. Rodriguez
2009-05-13 18:00       ` Bob Copeland
2009-05-13 18:13         ` Luis R. Rodriguez [this message]
2009-05-13 21:09           ` Bob Copeland
2009-05-13 21:30             ` Luis R. Rodriguez
2009-05-13 22:27         ` Johannes Berg
2009-05-13 23:08           ` Luis R. Rodriguez
2009-05-13 23:13             ` Johannes Berg
2009-05-13 23:25               ` Luis R. Rodriguez
2009-05-14 22:01                 ` Luis R. Rodriguez
2009-05-13 22:21       ` Johannes Berg
2009-05-13  9:20 ` [RFC v2 3/5] cfg80211: add WoW support Luis R. Rodriguez
2009-05-13  9:55   ` Johannes Berg
2009-05-13 18:14     ` Luis R. Rodriguez
2009-05-13 22:22       ` Johannes Berg
2009-05-13 22:30         ` Luis R. Rodriguez
2009-05-13  9:58   ` Johannes Berg
2009-05-13 17:27     ` Luis R. Rodriguez
2009-05-13  9:21 ` [RFC v2 4/5] mac80211: " Luis R. Rodriguez
2009-05-13  9:21 ` [RFC v2 5/5] ath9k: Add Wake-on-Wireless-LAN support Luis R. Rodriguez

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=20090513181329.GA19693@tesla \
    --to=lrodriguez@atheros.com \
    --cc=Luis.Rodriguez@Atheros.com \
    --cc=bcopeland@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.