mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-03 06:33:53 +00:00
48 lines
1.4 KiB
Diff
48 lines
1.4 KiB
Diff
From b8b4b5abf0dce8bedfca44e1a7871c119f2b92e6 Mon Sep 17 00:00:00 2001
|
|
From: Bo Jiao <Bo.Jiao@mediatek.com>
|
|
Date: Mon, 11 Sep 2023 17:11:24 +0800
|
|
Subject: [PATCH 1037/1053] wifi: mt76: mt7915: add debug log for SER flow.
|
|
|
|
Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
|
|
---
|
|
mt7915/mac.c | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/mt7915/mac.c b/mt7915/mac.c
|
|
index 71b4e2d..b0ddb10 100644
|
|
--- a/mt7915/mac.c
|
|
+++ b/mt7915/mac.c
|
|
@@ -1572,6 +1572,9 @@ void mt7915_mac_reset_work(struct work_struct *work)
|
|
if (!(READ_ONCE(dev->recovery.state) & MT_MCU_CMD_STOP_DMA))
|
|
return;
|
|
|
|
+ dev_info(dev->mt76.dev,"\n%s L1 SER recovery start.",
|
|
+ wiphy_name(dev->mt76.hw->wiphy));
|
|
+
|
|
ieee80211_stop_queues(mt76_hw(dev));
|
|
if (ext_phy)
|
|
ieee80211_stop_queues(ext_phy->hw);
|
|
@@ -1647,6 +1650,9 @@ void mt7915_mac_reset_work(struct work_struct *work)
|
|
ieee80211_queue_delayed_work(ext_phy->hw,
|
|
&phy2->mt76->mac_work,
|
|
MT7915_WATCHDOG_TIME);
|
|
+
|
|
+ dev_info(dev->mt76.dev,"\n%s L1 SER recovery completed.",
|
|
+ wiphy_name(dev->mt76.hw->wiphy));
|
|
}
|
|
|
|
/* firmware coredump */
|
|
@@ -1762,6 +1768,9 @@ void mt7915_coredump(struct mt7915_dev *dev, u8 state)
|
|
|
|
void mt7915_reset(struct mt7915_dev *dev)
|
|
{
|
|
+ dev_info(dev->mt76.dev, "%s SER recovery state: 0x%08x\n",
|
|
+ wiphy_name(dev->mt76.hw->wiphy), READ_ONCE(dev->recovery.state));
|
|
+
|
|
if (!dev->recovery.hw_init_done)
|
|
return;
|
|
|
|
--
|
|
2.18.0
|
|
|