projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d74c4b5
)
mt76: mt7921: reset wfsys during hw probe
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Sun, 23 May 2021 21:10:12 +0000
(23:10 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Sat, 19 Jun 2021 07:22:46 +0000
(09:22 +0200)
This patch fixes a mcu hang during device probe on
Marvell ESPRESSObin after a hot reboot.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/dma.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7921/dma.c
b/drivers/net/wireless/mediatek/mt76/mt7921/dma.c
index
bd9143d
..
7fca7dc
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7921/dma.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7921/dma.c
@@
-402,6
+402,10
@@
int mt7921_dma_init(struct mt7921_dev *dev)
if (ret)
return ret;
+ ret = mt7921_wfsys_reset(dev);
+ if (ret)
+ return ret;
+
/* init tx queue */
ret = mt7921_init_tx_queues(&dev->phy, MT7921_TXQ_BAND0,
MT7921_TX_RING_SIZE);