OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17cb546
)
mt76: mt7915: ensure that init work completes before starting the device
author
Felix Fietkau
<nbd@nbd.name>
Mon, 23 Nov 2020 12:32:26 +0000
(13:32 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 26 Jan 2021 19:07:49 +0000
(20:07 +0100)
Without this change, the start operation could potentially race against eeprom
or txbf init
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7915/main.c
b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
index
73c5ee1
..
05dd759
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7915/main.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7915/main.c
@@
-26,6
+26,8
@@
static int mt7915_start(struct ieee80211_hw *hw)
struct mt7915_phy *phy = mt7915_hw_phy(hw);
bool running;
+ flush_work(&dev->init_work);
+
mutex_lock(&dev->mt76.mutex);
running = mt7915_dev_running(dev);