]> git.baikalelectronics.ru Git - 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)
commit29c6b7f097f9d7f7f226ae80ace86d19082f962d
tree0757c3a48f06ee7af22bfab4c6b0ca08cc79e08d
parentbfc9d11725fa9227bb3244bc4f73c6bcfdcff4b6
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