wifi: rtw89: debug: add to check if debug mask is enabled
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 22 Nov 2023 06:04:55 +0000 (14:04 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 30 Nov 2023 19:45:21 +0000 (21:45 +0200)
commit77abbabaafe5d14ed033adb6969c54d42faf67f0
treef5c304be77e5341e1180e8eaa57d6f269cd307c6
parentbc8263083af60e7e57c6120edbc1f75d6c909a35
wifi: rtw89: debug: add to check if debug mask is enabled

The coming dynamic mechanism of EDCCA adjustment 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: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231122060458.30878-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/debug.h