OSDN Git Service

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)
commit7b80f3e48c4b0ff85ff91945a2537d0bbc3e3cc4
tree9f850c171b881aeeeaaf7f5a02bc7b41e42d6d5a
parenta853d234e179086040912a8bbb3341829c079495
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