Skip to content

Commit

Permalink
mt76: mt7921: wake the device before dumping power table
Browse files Browse the repository at this point in the history
[ Upstream commit 271fa68 ]

Always wake the device up before dumping the single_sku power table
otherwise the device can hang.

Fixes: ea29acc ("mt76: mt7921: add dumping Tx power table")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
LorenzoBianconi authored and gregkh committed Jul 14, 2021
1 parent 3acae0c commit 0a446c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0a446c7

Please sign in to comment.