rtw89: add debug select to dump MAC pages 0x30 to 0x33
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 6 May 2022 12:02:15 +0000 (20:02 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 11 May 2022 05:31:02 +0000 (08:31 +0300)
Dump new region 0x3000 to 0x33ff to help debug.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220506120216.58567-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/debug.c
drivers/net/wireless/realtek/rtw89/debug.h

index f93f3fee150581995b8a92b972cf2f17f9b1c8a3..7820bc3ab3b474f88cc6c63e73819cfbbf29162c 100644 (file)
@@ -635,6 +635,11 @@ static int rtw89_debug_priv_mac_reg_dump_get(struct seq_file *m, void *v)
                start = 0x000;
                end = 0x014;
                break;
+       case RTW89_DBG_SEL_MAC_30:
+               seq_puts(m, "Debug selected MAC page 0x30\n");
+               start = 0x030;
+               end = 0x033;
+               break;
        case RTW89_DBG_SEL_MAC_40:
                seq_puts(m, "Debug selected MAC page 0x40\n");
                start = 0x040;
index 1745815f5e00f012ecca3c6286818246ee9d7b76..de72155ad1fea11094cecd6be798ea0b0b26e0b5 100644 (file)
@@ -28,6 +28,7 @@ enum rtw89_debug_mask {
 
 enum rtw89_debug_mac_reg_sel {
        RTW89_DBG_SEL_MAC_00,
+       RTW89_DBG_SEL_MAC_30,
        RTW89_DBG_SEL_MAC_40,
        RTW89_DBG_SEL_MAC_80,
        RTW89_DBG_SEL_MAC_C0,