Cheng Wang <quic_chengwan@xxxxxxxxxxx> writes: > Add debugfs interface reg_addr/reg_value and use these two interfaces > to read register value. > For example, execute the following commands to read WCN6855 HW register of > “memtype=0xa offset=0x3a00d0”: > > $ echo 0xa 0x3a00d0>reg_addr > $ cat reg_value > 0x10200000 > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 > > Signed-off-by: Cheng Wang <quic_chengwan@xxxxxxxxxxx> > --- > v2: change per comments from Kalle > fixes new warnings. I had already made changes in v1 so I'll use that instead: https://patchwork.kernel.org/project/linux-wireless/patch/20220125063731.3049556-1-quic_chengwan@xxxxxxxxxxx/ -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches