projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ab079e
)
mt76: mt7921: wake the device before dumping power table
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Sat, 5 Jun 2021 11:46:03 +0000
(13:46 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Sat, 19 Jun 2021 07:22:48 +0000
(09:22 +0200)
Always wake the device up before dumping the single_sku power table
otherwise the device can hang.
Fixes: ea29acc97c555 ("mt76: mt7921: add dumping Tx power table")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
b/drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
index 6ee423dd4027cb0c5f3b9a72e3b462e76c6b0141..6602903c0d026c16b737b26a52142282a5b017a1 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
@@
-184,7
+184,10
@@
mt7921_txpwr(struct seq_file *s, void *data)
struct mt7921_txpwr txpwr;
int ret;
+ mt7921_mutex_acquire(dev);
ret = mt7921_get_txpwr_info(dev, &txpwr);
+ mt7921_mutex_release(dev);
+
if (ret)
return ret;