linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ar76c50x-usb: few mac80211 workqueue usage fixes
@ 2009-07-27 18:56 Luis R. Rodriguez
  2009-07-27 18:56 ` [PATCH 1/2] ar76c50x-usb: cancel promisc work during mac80211 stop Luis R. Rodriguez
  2009-07-27 18:56 ` [PATCH 2/2] at76c50x-usb: cancel scan work at stop callback Luis R. Rodriguez
  0 siblings, 2 replies; 5+ messages in thread
From: Luis R. Rodriguez @ 2009-07-27 18:56 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Luis R. Rodriguez

Part of the mac80211 workqueue review.

Luis R. Rodriguez (2):
  ar76c50x-usb: cancel promisc work during mac80211 stop
  at76c50x-usb: cancel scan work at stop callback

 drivers/net/wireless/at76c50x-usb.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] ar76c50x-usb: cancel promisc work during mac80211 stop
  2009-07-27 18:56 [PATCH 0/2] ar76c50x-usb: few mac80211 workqueue usage fixes Luis R. Rodriguez
@ 2009-07-27 18:56 ` Luis R. Rodriguez
  2009-07-29  5:39   ` Kalle Valo
  2009-07-27 18:56 ` [PATCH 2/2] at76c50x-usb: cancel scan work at stop callback Luis R. Rodriguez
  1 sibling, 1 reply; 5+ messages in thread
From: Luis R. Rodriguez @ 2009-07-27 18:56 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Luis R. Rodriguez, Kalle Valo

We weren't ever cancelling this.

Cc: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
 drivers/net/wireless/at76c50x-usb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index 13303fa..bbf5277 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -1773,6 +1773,8 @@ static void at76_mac80211_stop(struct ieee80211_hw *hw)
 
 	at76_dbg(DBG_MAC80211, "%s()", __func__);
 
+	cancel_work_sync(&priv->work_set_promisc);
+
 	mutex_lock(&priv->mtx);
 
 	if (!priv->device_unplugged) {
-- 
1.6.0.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] at76c50x-usb: cancel scan work at stop callback
  2009-07-27 18:56 [PATCH 0/2] ar76c50x-usb: few mac80211 workqueue usage fixes Luis R. Rodriguez
  2009-07-27 18:56 ` [PATCH 1/2] ar76c50x-usb: cancel promisc work during mac80211 stop Luis R. Rodriguez
@ 2009-07-27 18:56 ` Luis R. Rodriguez
  2009-07-29  5:41   ` Kalle Valo
  1 sibling, 1 reply; 5+ messages in thread
From: Luis R. Rodriguez @ 2009-07-27 18:56 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Luis R. Rodriguez, Kalle Valo

This should fix suspend as mac80211 expects all work queued
to the mac80211 workqueue to be canceled at driver stop().

Cc: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
 drivers/net/wireless/at76c50x-usb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index bbf5277..f46e2b3 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -1773,6 +1773,7 @@ static void at76_mac80211_stop(struct ieee80211_hw *hw)
 
 	at76_dbg(DBG_MAC80211, "%s()", __func__);
 
+	cancel_delayed_work(&priv->dwork_hw_scan);
 	cancel_work_sync(&priv->work_set_promisc);
 
 	mutex_lock(&priv->mtx);
@@ -2298,7 +2299,6 @@ static void at76_delete_device(struct at76_priv *priv)
 	tasklet_kill(&priv->rx_tasklet);
 
 	if (priv->mac80211_registered) {
-		cancel_delayed_work(&priv->dwork_hw_scan);
 		flush_workqueue(priv->hw->workqueue);
 		ieee80211_unregister_hw(priv->hw);
 	}
-- 
1.6.0.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] ar76c50x-usb: cancel promisc work during mac80211 stop
  2009-07-27 18:56 ` [PATCH 1/2] ar76c50x-usb: cancel promisc work during mac80211 stop Luis R. Rodriguez
@ 2009-07-29  5:39   ` Kalle Valo
  0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2009-07-29  5:39 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linville, linux-wireless

"Luis R. Rodriguez" <lrodriguez@Atheros.com> writes:

> We weren't ever cancelling this.
>
> Cc: Kalle Valo <kalle.valo@iki.fi>
> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>

Thanks.

Acked-by: Kalle Valo <kalle.valo@iki.fi>

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] at76c50x-usb: cancel scan work at stop callback
  2009-07-27 18:56 ` [PATCH 2/2] at76c50x-usb: cancel scan work at stop callback Luis R. Rodriguez
@ 2009-07-29  5:41   ` Kalle Valo
  0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2009-07-29  5:41 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linville, linux-wireless

"Luis R. Rodriguez" <lrodriguez@Atheros.com> writes:

> This should fix suspend as mac80211 expects all work queued
> to the mac80211 workqueue to be canceled at driver stop().
>
> Cc: Kalle Valo <kalle.valo@iki.fi>
> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>

Indeed, the original implementation doesn't make any sense. Thanks for
looking at at76c50x-usb.

Acked-by: Kalle Valo <kalle.valo@iki.fi>

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-29  5:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-27 18:56 [PATCH 0/2] ar76c50x-usb: few mac80211 workqueue usage fixes Luis R. Rodriguez
2009-07-27 18:56 ` [PATCH 1/2] ar76c50x-usb: cancel promisc work during mac80211 stop Luis R. Rodriguez
2009-07-29  5:39   ` Kalle Valo
2009-07-27 18:56 ` [PATCH 2/2] at76c50x-usb: cancel scan work at stop callback Luis R. Rodriguez
2009-07-29  5:41   ` Kalle Valo

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).