wifi: rtw89: debug: add debugfs entry to disable dynamic mechanism
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 22 Nov 2023 06:04:57 +0000 (14:04 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 30 Nov 2023 19:45:22 +0000 (21:45 +0200)
commitd371c3aa35fd2dc8d77d4be6db2e3d573f4a9704
treee1ac9cd1f91e35db694ee44ef1033551310d8e34
parent0bb185257de6043857498d29fd5c7aae3acb1d45
wifi: rtw89: debug: add debugfs entry to disable dynamic mechanism

A dynamic mechanism is usually an algorithm to adjust registers to adapt
to different environment every two seconds. In field, it could get
unexpected result, so we need to stop it and adjust registers manually, and
then fine tune the algorithm.

To stop mechanisms to assist debugging, add a debugfs entry shown as

  Disabled DM: 0x1
  [0] DYNAMIC_EDCCA: X

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