developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 3be6f92d47cdfd1ab676c9728cc84560fd2cee91 Mon Sep 17 00:00:00 2001 |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Fri, 8 Sep 2023 18:26:21 +0800 |
developer | a20cdc2 | 2024-05-31 18:57:31 +0800 | [diff] [blame] | 4 | Subject: [PATCH 2009/2015] wifi: mt76: mt7915: enable wa log to uart |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 5 | |
| 6 | Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 7 | --- |
| 8 | mt7915/debugfs.c | 6 +++++- |
| 9 | 1 file changed, 5 insertions(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/mt7915/debugfs.c b/mt7915/debugfs.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 12 | index 576ec1a5..03ccb51b 100644 |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 13 | --- a/mt7915/debugfs.c |
| 14 | +++ b/mt7915/debugfs.c |
developer | dc9eeae | 2024-04-08 14:36:46 +0800 | [diff] [blame] | 15 | @@ -951,7 +951,11 @@ mt7915_fw_debug_wa_set(void *data, u64 val) |
developer | bd9fa1e | 2023-10-16 11:04:00 +0800 | [diff] [blame] | 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 | -- |
| 29 | 2.18.0 |
| 30 | |