wifi: rtw88: debug: add to check if debug mask is enabled
authorChin-Yen Lee <timlee@realtek.com>
Mon, 16 Oct 2023 05:35:53 +0000 (13:35 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 19 Oct 2023 07:28:02 +0000 (10:28 +0300)
commit1926a27299db00239d6bdc4c3f2bd3f842277d0d
tree512c2de1de925fc19ec78f1c994b3694d1f36a19
parent9a66e73094add3d5f330db83982aa20591189fcc
wifi: rtw88: debug: add to check if debug mask is enabled

The coming dump function for FW malfunction will add a function to
dump registers to reflect status. However, if we are not debugging
the mechanism, we don't print anything, so avoid reading registers by
checking debug mask to reduce IO.

Signed-off-by: Chin-Yen Lee <timlee@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/20231016053554.744180-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/debug.h