Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/mt76.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2021-04-21 16:37:21 +0300
committerFelix Fietkau <nbd@nbd.name>2021-04-21 18:33:55 +0300
commited41ed73a495b8745385b6e9ba3034e8d1ef7cf2 (patch)
tree0fe323abae0df1c30c649797ab7d03140ef4eb6e
parent757af5c67d323a1b7b8909a943a1f5f69ac651e4 (diff)
mt76: mt7921: reinit wpdma during drv_own if necessarypending
Check dummy reg to reinitialized WPDMA during driver_own operation Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--mt7921/mcu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mt7921/mcu.c b/mt7921/mcu.c
index 78bd965d..5f3d56d5 100644
--- a/mt7921/mcu.c
+++ b/mt7921/mcu.c
@@ -1308,6 +1308,8 @@ int mt7921_mcu_drv_pmctrl(struct mt7921_dev *dev)
err = -EIO;
goto out;
}
+
+ mt7921_wpdma_reinit_cond(dev);
clear_bit(MT76_STATE_PM, &mphy->state);
pm->stats.last_wake_event = jiffies;