mt76: mt7915: ensure that init work completes before starting the device
Without this change, the start operation could potentially race against eeprom or txbf init Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
17cb546551
commit
0c2d098098
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue