OSDN Git Service

wifi: rtw89: enlarge supported length of read_reg debugfs entry
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 19 May 2023 03:14:58 +0000 (11:14 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 25 May 2023 16:11:30 +0000 (19:11 +0300)
commit4cfad52a5df718a615f8de5ba14370d99537db4c
treee971de8c1c1348daa069b50de34a48fa64d817dc
parent791af3fb2decc11b2994f7020378dffecd654fcd
wifi: rtw89: enlarge supported length of read_reg debugfs entry

The register ranges of upcoming chips are different from current, and even
existing chips have different ranges, so support longer length to dump
registers. Then, user space can decide the ranges according to chip.

Since arbitrary length (e.g. 7) would be a little complicated, so simply
make length a multiple of 16. The output looks like

18620000h : 8580801f 82828282 82828282 080800fd

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230519031500.21087-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/debug.c