In field, someone reported firmware of rtw88 doesn't response H2C commands, or failed to enter PS mode. But, it is hard to reproduce in our side, so add this debug patch to have a regular flow to collect registers for easier remote debugging. Chin-Yen Lee (2): wifi: rtw88: debug: add to check if debug mask is enabled wifi: rtw88: dump firmware debug information in abnormal state drivers/net/wireless/realtek/rtw88/debug.h | 12 ++++ drivers/net/wireless/realtek/rtw88/fw.c | 74 ++++++++++++++++++++++ drivers/net/wireless/realtek/rtw88/fw.h | 3 + drivers/net/wireless/realtek/rtw88/main.h | 6 ++ drivers/net/wireless/realtek/rtw88/ps.c | 2 + drivers/net/wireless/realtek/rtw88/reg.h | 23 +++++++ 6 files changed, 120 insertions(+) -- 2.25.1