[PATCH v2] mt76: mt7915: add debugfs knob for RF registers read/write

Shayne Chen shayne.chen at mediatek.com
Fri Apr 15 04:15:47 PDT 2022


On Fri, 2022-04-15 at 10:26 +0200, Felix Fietkau wrote:
> On 15.04.22 08:14, Shayne Chen wrote:
> > Add RF registers read/write support for debugging RF issues, which
> > should be processed by mcu commands.
> > 
> > Reviewed-by: Ryder Lee <ryder.lee at mediatek.com>
> > Signed-off-by: Peter Chiu <chui-hao.chiu at mediatek.com>
> > Signed-off-by: Shayne Chen <shayne.chen at mediatek.com>
> 
> What's the required width of rf_sel and rf_ofs? Would both fit
> together 
> in a single u32? If so, you could just use the generic regidx
> debugfs 
> file for both and simply add a rf_regval debugfs file.
> 
> - Felix

Hi Felix,

FW use the WF sel (antenna 0-3) and offset to locate rf registers.
I'll send an update patch to merge them in the generic regidx with
wf sel [31:28] and offset [27:0].

Thanks,
Shayne




More information about the Linux-mediatek mailing list