blob: 378596de015fb69a17403a9aa4c8fbc458e6184d [file] [log] [blame]
developerbd9fa1e2023-10-16 11:04:00 +08001From b010edba440f66a02eb9b72fb55831befb60107f Mon Sep 17 00:00:00 2001
2From: Bo Jiao <Bo.Jiao@mediatek.com>
3Date: Mon, 11 Sep 2023 17:11:24 +0800
4Subject: [PATCH 1040/1040] wifi: mt76: mt7915: add debug log for SER flow.
5
6Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
7---
8 mt7915/mac.c | 9 +++++++++
9 1 file changed, 9 insertions(+)
10
11diff --git a/mt7915/mac.c b/mt7915/mac.c
12index 817763a..e51440d 100644
13--- a/mt7915/mac.c
14+++ b/mt7915/mac.c
15@@ -1570,6 +1570,9 @@ void mt7915_mac_reset_work(struct work_struct *work)
16 if (!(READ_ONCE(dev->recovery.state) & MT_MCU_CMD_STOP_DMA))
17 return;
18
19+ dev_info(dev->mt76.dev,"\n%s L1 SER recovery start.",
20+ wiphy_name(dev->mt76.hw->wiphy));
21+
22 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) {
23 mtk_wed_device_stop(&dev->mt76.mmio.wed);
24 if (!is_mt798x(&dev->mt76))
25@@ -1648,6 +1651,9 @@ void mt7915_mac_reset_work(struct work_struct *work)
26 ieee80211_queue_delayed_work(ext_phy->hw,
27 &phy2->mt76->mac_work,
28 MT7915_WATCHDOG_TIME);
29+
30+ dev_info(dev->mt76.dev,"\n%s L1 SER recovery completed.",
31+ wiphy_name(dev->mt76.hw->wiphy));
32 }
33
34 /* firmware coredump */
35@@ -1763,6 +1769,9 @@ void mt7915_coredump(struct mt7915_dev *dev, u8 state)
36
37 void mt7915_reset(struct mt7915_dev *dev)
38 {
39+ dev_info(dev->mt76.dev, "%s SER recovery state: 0x%08x\n",
40+ wiphy_name(dev->mt76.hw->wiphy), READ_ONCE(dev->recovery.state));
41+
42 if (!dev->recovery.hw_init_done)
43 return;
44
45--
462.18.0
47