]> 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)
commitcaafb82f29810263df98072c9b5b8e94102f9959
tree9f850c171b881aeeeaaf7f5a02bc7b41e42d6d5a
parentce47a808a665733e5f25d0854dd1bd8f5365ba84
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