Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> wrote: > Instead of reading bit 9 of RFPGA0_XA_HSSIPARAMETER2 every time a frame > is received, just use rtlphy->cck_high_power, which is initialised in > _rtl92d_phy_bb_config(). That bit never changes anyway. > > With this change _rtl92de_query_rxphystatus() can be shared with the > upcoming USB driver. The USB driver can't read registers in this > function because register reading can sleep. > > Compile tested only. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> Patch applied to wireless-next.git, thanks. 0635d73d85c1 wifi: rtlwifi: rtl8192de: Don't read register in _rtl92de_query_rxphystatus -- https://patchwork.kernel.org/project/linux-wireless/patch/19a3e023-0eaa-4096-9f78-a2c8e909cb54@xxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches