wifi: rtw89: debug: avoid invalid access on RTW89_DBG_SEL_MAC_30
authorZong-Zhe Yang <kevin_yang@realtek.com>
Thu, 19 Jan 2023 06:35:28 +0000 (14:35 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 17:05:27 +0000 (19:05 +0200)
commitc074da21dd346e0cfef5d08b0715078d7aea7f8d
treeb75e54471d5a3c3705f28b72866fbcad467214bd
parent76f478a34dafcee28165022b2f73d0ee1f0f47e5
wifi: rtw89: debug: avoid invalid access on RTW89_DBG_SEL_MAC_30

Only 8852C chip has valid pages on RTW89_DBG_SEL_MAC_30. To other chips,
this section is an address hole. It will lead to crash if trying to access
this section on chips except for 8852C. So, we avoid that.

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-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/debug.c