blob: 6fbee7ea656dff566a275356e2507f47b52d7f31 [file] [log] [blame]
developer05680132023-09-08 18:32:17 +08001From 44d7d8c0fba2102d07d197525e06c191ccae4fd8 Mon Sep 17 00:00:00 2001
2From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Fri, 8 Sep 2023 18:26:21 +0800
4Subject: [PATCH] wifi: mt76: mt7915: enable wa log to uart
5
6Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
7---
8 mt7915/debugfs.c | 6 +++++-
9 1 file changed, 5 insertions(+), 1 deletion(-)
10
11diff --git a/mt7915/debugfs.c b/mt7915/debugfs.c
12index fefa4540..ba42a8b9 100644
13--- a/mt7915/debugfs.c
14+++ b/mt7915/debugfs.c
15@@ -988,7 +988,11 @@ mt7915_fw_debug_wa_set(void *data, u64 val)
16 struct mt7915_dev *dev = data;
17 int ret;
18
19- dev->fw.debug_wa = val ? MCU_FW_LOG_TO_HOST : 0;
20+ /* bit 0: log to uart, bit 1: log to Host */
21+ if (val > 3)
22+ return -EINVAL;
23+
24+ dev->fw.debug_wa = val;
25
26 ret = mt7915_mcu_fw_log_2_host(dev, MCU_FW_LOG_WA, dev->fw.debug_wa);
27 if (ret)
28--
292.18.0
30