developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 50046dd2dad794942f0f28fda6ede3b90261e0be Mon Sep 17 00:00:00 2001 |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 2 | From: Bo Jiao <Bo.Jiao@mediatek.com> |
| 3 | Date: Mon, 11 Sep 2023 17:11:24 +0800 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 1037/1052] wifi: mt76: mt7915: add debug log for SER flow. |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 5 | |
| 6 | Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com> |
| 7 | --- |
| 8 | mt7915/mac.c | 9 +++++++++ |
| 9 | 1 file changed, 9 insertions(+) |
| 10 | |
| 11 | diff --git a/mt7915/mac.c b/mt7915/mac.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 12 | index a7314465..c421447c 100644 |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 13 | --- a/mt7915/mac.c |
| 14 | +++ b/mt7915/mac.c |
developer | a20cdc2 | 2024-05-31 18:57:31 +0800 | [diff] [blame] | 15 | @@ -1531,6 +1531,9 @@ void mt7915_mac_reset_work(struct work_struct *work) |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 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 | + |
developer | 753619c | 2024-02-22 13:42:45 +0800 | [diff] [blame] | 22 | ieee80211_stop_queues(mt76_hw(dev)); |
| 23 | if (ext_phy) |
| 24 | ieee80211_stop_queues(ext_phy->hw); |
developer | a20cdc2 | 2024-05-31 18:57:31 +0800 | [diff] [blame] | 25 | @@ -1606,6 +1609,9 @@ void mt7915_mac_reset_work(struct work_struct *work) |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 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 */ |
developer | a20cdc2 | 2024-05-31 18:57:31 +0800 | [diff] [blame] | 35 | @@ -1721,6 +1727,9 @@ void mt7915_coredump(struct mt7915_dev *dev, u8 state) |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 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 | -- |
| 46 | 2.18.0 |
| 47 | |