diff options
author | Chin-Yen Lee <timlee@realtek.com> | 2023-10-16 13:35:54 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-10-19 10:28:02 +0300 |
commit | 20907fc069976fcf972239b7b253cf7c59c08a14 (patch) | |
tree | 8d26c6cafb1aca489ffab3036d0ab599a6eaa722 /drivers/net/wireless/realtek/rtw88/main.h | |
parent | 1926a27299db00239d6bdc4c3f2bd3f842277d0d (diff) |
wifi: rtw88: dump firmware debug information in abnormal state
Sometimes firmware may enter strange state or infinite
loop due to unknown bug, and then it will lead critical
function fail, such as sending H2C command or changing
power mode. In these abnormal states, we add more debug
information, including hardware register status, to help
further investigation.
Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231016053554.744180-3-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/main.h')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/main.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/main.h b/drivers/net/wireless/realtek/rtw88/main.h index 86dc1516effa..b6bfd4c02e2d 100644 --- a/drivers/net/wireless/realtek/rtw88/main.h +++ b/drivers/net/wireless/realtek/rtw88/main.h @@ -524,6 +524,12 @@ struct rtw_hw_reg { u32 mask; }; +struct rtw_hw_reg_desc { + u32 addr; + u32 mask; + const char *desc; +}; + struct rtw_ltecoex_addr { u32 ctrl; u32 wdata; |