linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5.1 1/3] mt76: mt7603: add missing initialization for dev->ps_lock
@ 2019-03-26  8:34 Felix Fietkau
  2019-03-26  8:34 ` [PATCH 5.1 2/3] mt76: mt7603: fix sequence number assignment Felix Fietkau
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Felix Fietkau @ 2019-03-26  8:34 UTC (permalink / raw)
  To: linux-wireless; +Cc: kvalo

Fixes lockdep complaint and a potential race condition

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 drivers/net/wireless/mediatek/mt76/mt7603/init.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/init.c b/drivers/net/wireless/mediatek/mt76/mt7603/init.c
index d54dda67d036..3af45949e868 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7603/init.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7603/init.c
@@ -510,6 +510,8 @@ int mt7603_register_device(struct mt7603_dev *dev)
 	bus_ops->rmw = mt7603_rmw;
 	dev->mt76.bus = bus_ops;
 
+	spin_lock_init(&dev->ps_lock);
+
 	INIT_DELAYED_WORK(&dev->mac_work, mt7603_mac_work);
 	tasklet_init(&dev->pre_tbtt_tasklet, mt7603_pre_tbtt_tasklet,
 		     (unsigned long)dev);
-- 
2.17.0


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

end of thread, other threads:[~2019-04-12 18:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-26  8:34 [PATCH 5.1 1/3] mt76: mt7603: add missing initialization for dev->ps_lock Felix Fietkau
2019-03-26  8:34 ` [PATCH 5.1 2/3] mt76: mt7603: fix sequence number assignment Felix Fietkau
2019-03-26  8:34 ` [PATCH 5.1 3/3] mt76: mt7603: send BAR after powersave wakeup Felix Fietkau
2019-04-12 18:29 ` [PATCH 5.1 1/3] mt76: mt7603: add missing initialization for dev->ps_lock 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).