wil6210: add support for ucode tracing
authorAhmad Masri <amasri@codeaurora.org>
Thu, 28 Feb 2019 09:35:05 +0000 (11:35 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 3 Apr 2019 12:45:07 +0000 (15:45 +0300)
The driver needs to expose RGF_USER_USAGE_2 register that contains
the offset of the ucode logging table.

Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/debugfs.c
drivers/net/wireless/ath/wil6210/wil6210.h

index 817762f58994dc5b03b29afaa8af8c18880647b7..78320ec125c43a4f65db177e92e1852cf074006a 100644 (file)
@@ -2392,6 +2392,7 @@ static const struct dbg_off dbg_wil_regs[] = {
        {"RGF_MAC_MTRL_COUNTER_0", 0444, HOSTADDR(RGF_MAC_MTRL_COUNTER_0),
                doff_io32},
        {"RGF_USER_USAGE_1", 0444, HOSTADDR(RGF_USER_USAGE_1), doff_io32},
+       {"RGF_USER_USAGE_2", 0444, HOSTADDR(RGF_USER_USAGE_2), doff_io32},
        {},
 };
 
index 9d7e02e6c3aa96a6b7320a43c60252c329cc36b3..f508d52c867aa5ca9ec8c26733685988b4b6739b 100644 (file)
@@ -185,6 +185,7 @@ struct RGF_ICR {
 
 /* registers - FW addresses */
 #define RGF_USER_USAGE_1               (0x880004)
+#define RGF_USER_USAGE_2               (0x880008)
 #define RGF_USER_USAGE_6               (0x880018)
        #define BIT_USER_OOB_MODE               BIT(31)
        #define BIT_USER_OOB_R2_MODE            BIT(30)