wifi: rtw89: deal with RXI300 error
authorZong-Zhe Yang <kevin_yang@realtek.com>
Thu, 19 Jan 2023 06:35:29 +0000 (14:35 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 17:05:28 +0000 (19:05 +0200)
commitf5d98831badb89172515ac73015d0e7475a285c1
tree089c3cab57bd9d2636e8c0dc2e1e824497ab0f44
parentc074da21dd346e0cfef5d08b0715078d7aea7f8d
wifi: rtw89: deal with RXI300 error

RXI300 is a HW design to maintain stuffs across BUS, e.g. AXI, AHB, APB.
It will feedback an error when host does an invalid BUS operation.
For example,
* BUS master request without power/clock on.
* host reads/writes/accesses an invalid address.

They might lead to problems such as BUS timeout, platform hang, etc. So,
once if RXI300 feedback an error, it notifies that driver need a L2 SER
(system error recovery) to reset things.

Previously, driver did not parse the error scenario for RXI300. We add
it and assign a corresponding error code which will make SER flow do L2
reset.

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@kernel.org>
Link: https://lore.kernel.org/r/20230119063529.61563-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/mac.h