From: Luis R. Rodriguez Date: Fri, 24 Jul 2009 17:06:09 -0700 Subject: [ath9k-devel] [PATCH] mac80211: add helper to add to the mac80211 workqueue In-Reply-To: <1248459325.32151.32.camel@johannes.local> References: <1248458909-15338-1-git-send-email-lrodriguez@atheros.com> <1248459325.32151.32.camel@johannes.local> Message-ID: <43e72e890907241706s4c2e0df5jfe143b56536bf629@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Fri, Jul 24, 2009 at 11:15 AM, Johannes Berg wrote: > On Fri, 2009-07-24 at 14:08 -0400, Luis R. Rodriguez wrote: >> We add a mac80211 helper for adding work onto the mac80211 >> workqueue. We then add a warning if we are suspended. At that >> point drivers nor mac80211 should have queued work, drivers >> and mac80211 should ensure the workqueue will remain clair >> until resume. >> >> We make use of the helper now in mac80211 and on all mac80211 >> drivers. If you see a warning because of this patch during >> the suspend <--> resume cycle it means suspend is busted for >> your driver or mac80211 and it needs to be fixed. > > Looks good to me. Except I forgot about delayed queing, flushing. I will repost and consider all the other things. Luis