]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
rtw88: add dump fw crash log
authorTzu-En Huang <tehuang@realtek.com>
Fri, 25 Sep 2020 06:12:18 +0000 (14:12 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 Sep 2020 08:22:21 +0000 (11:22 +0300)
commit714f71f94ab34aa14393c305e43debd83928f98c
tree0757c3a48f06ee7af22bfab4c6b0ca08cc79e08d
parent0fbc2f0f34cc57e8d6076631733e0095ac031995
rtw88: add dump fw crash log

This patch adds a function which is able to dump firmware fifo when
firmware crashes. If firmware needs more than one time to dump all logs,
it will set a bit called "more bit" in the header of the first log, and
driver needs to set a register to inform firmware that it is ready for the
next dump.

Signed-off-by: Tzu-En Huang <tehuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200925061219.23754-5-tehuang@realtek.com
drivers/net/wireless/realtek/rtw88/fw.h
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/reg.h