From: Johannes Berg <johannes@sipsolutions.net>
To: "Luis R. Rodriguez" <lrodriguez@atheros.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: fix some unforgotten items on suspend
Date: Fri, 15 May 2009 10:38:27 +0200 [thread overview]
Message-ID: <1242376707.5799.45.camel@johannes.local> (raw)
In-Reply-To: <1242375725.5799.39.camel@johannes.local>
[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]
On Fri, 2009-05-15 at 10:22 +0200, Johannes Berg wrote:
> > +++ b/net/mac80211/pm.c
> > @@ -18,6 +18,10 @@ int __ieee80211_suspend(struct ieee80211_hw *hw)
> >
> > flush_workqueue(local->hw.workqueue);
> >
> > + /* Don't stuff our workqueue during suspend->resume cycle */
> > + del_timer_sync(&local->dynamic_ps_timer);
> > + cancel_work_sync(&local->dynamic_ps_enable_work);
> > +
>
> ack, but you forgot to add a comment why dynamic_ps_disable_work doesn't
> need to be handled (actually it does need to handled with the current
> code but shouldn't be necessary... up for a challenge? -- why? and how
> to fix that better than handling it here?)
>
> If you ever suspend in AP mode there's also an issue with each station's
> cleanup timer, and for mesh each station's plink timer.
Hmm, actually, this isn't safe. We might still be receiving frames at
this point, which would start the timer again.
> I don't think that helps, like I said the timers are still set up, you
> need to actually queue the work now. However that kinda sucks for small
> suspend times. Not really sure what to do.
Instead of doing the setup_timer dance you were doing, we should simply
do add_timer /iff/ del_timer_sync() returned 1, because that means we
actually cancelled the timer.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
prev parent reply other threads:[~2009-05-15 8:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-15 4:48 [PATCH] mac80211: fix some unforgotten items on suspend Luis R. Rodriguez
2009-05-15 7:11 ` Luis R. Rodriguez
2009-05-15 8:22 ` Johannes Berg
2009-05-15 8:38 ` Johannes Berg [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=1242376707.5799.45.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=lrodriguez@atheros.com \
/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