]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: dump FW crash via devcoredump
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 28 May 2021 03:29:00 +0000 (11:29 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 22 Jun 2021 15:21:31 +0000 (18:21 +0300)
commitea5454df92f9dae0aa4ba050ca774b34a1b00462
tree9f850c171b881aeeeaaf7f5a02bc7b41e42d6d5a
parenta5f5aa4376e32cbdd02876e11d5d1b6e03d677d9
rtw88: dump FW crash via devcoredump

Use device coredump framework instead of print_hex_dump to support
FW crash dump. Pass data to the framework if preparing and dumping
are successful. The framework will take the ownership of the data.
The data will be freed after the framework determines its lifetime
is over. A new coredump will not work if the previous one still
exists.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210528032901.12927-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/debug.c
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/rtw8822c.c