summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2021-04-19 22:20:57 +0800
committerFelix Fietkau <nbd@nbd.name>2021-04-21 20:55:54 +0200
commit77ba349101ac22bae2d4e635245b60173d49de2b (patch)
tree2ba569027b1716d6495e402a4a97c49c1ab20d81 /drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
parent5536e7354aa8abf0e27a1bc58f4b4653b4884bdf (diff)
downloadlinux-77ba349101ac22bae2d4e635245b60173d49de2b.tar.bz2
mt76: mt7921: introduce mt7921_wpdma_reinit_cond utility routine
Add mt7921_wpdma_reinit_cond to check dummy reg if driver needs to reinitialized WPDMA after driver_own operation Co-developed-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Sean Wang <sean.wang@mediatek.com> Co-developed-by: Leon Yen <leon.yen@mediatek.com> Signed-off-by: Leon Yen <leon.yen@mediatek.com> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
index f3982578cc56..6ee423dd4027 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c
@@ -269,6 +269,7 @@ mt7921_pm_stats(struct seq_file *s, void *data)
{
struct mt7921_dev *dev = dev_get_drvdata(s->private);
struct mt76_connac_pm *pm = &dev->pm;
+
unsigned long awake_time = pm->stats.awake_time;
unsigned long doze_time = pm->stats.doze_time;
@@ -281,6 +282,8 @@ mt7921_pm_stats(struct seq_file *s, void *data)
jiffies_to_msecs(awake_time),
jiffies_to_msecs(doze_time));
+ seq_printf(s, "low power wakes: %9d\n", pm->stats.lp_wake);
+
return 0;
}