Re: [PATCH 15/18] staging: rtl8723bs: remove register initializations tied to 802.11ac standard

From: Fabio Aiuto
Date: Mon Jun 21 2021 - 08:45:12 EST


Hello Hans,

On Mon, Jun 21, 2021 at 11:48:27AM +0200, Hans de Goede wrote:
> Hi,
>
> On 6/19/21 12:47 PM, Fabio Aiuto wrote:
> > remove register initializations tied to 802.11ac standard which
> > is not supported by the device.
> >
> > It's a dangerous operation, relying only on comments, but tested
> > on a Lenovo Ideapad MIIX 300-10IBY tablet seems to work.
> >
> > Signed-off-by: Fabio Aiuto <fabioaiuto83@xxxxxxxxx>
>
> TBH I think this patch should be dropped from the series, you
> are dropping a bunch of register writes which likely are actually
> doing something, so this is not just dead code removal.
>
> Regards,
>
> Hans
>
>
> > ---
> > drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 12 ------------
> > 1 file changed, 12 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
> > index 059d3050acc6..3a03dfb8d275 100644
> > --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
> > +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
> > @@ -1718,24 +1718,12 @@ void _InitBurstPktLen_8723BS(struct adapter *Adapter)
> > struct hal_com_data *pHalData = GET_HAL_DATA(Adapter);
> >
> > rtw_write8(Adapter, 0x4c7, rtw_read8(Adapter, 0x4c7)|BIT(7)); /* enable single pkt ampdu */
> > - rtw_write8(Adapter, REG_RX_PKT_LIMIT_8723B, 0x18); /* for VHT packet length 11K */
> > rtw_write8(Adapter, REG_MAX_AGGR_NUM_8723B, 0x1F);
> > rtw_write8(Adapter, REG_PIFS_8723B, 0x00);
> > rtw_write8(Adapter, REG_FWHW_TXQ_CTRL_8723B, rtw_read8(Adapter, REG_FWHW_TXQ_CTRL)&(~BIT(7)));
> > if (pHalData->AMPDUBurstMode)
> > rtw_write8(Adapter, REG_AMPDU_BURST_MODE_8723B, 0x5F);
> > rtw_write8(Adapter, REG_AMPDU_MAX_TIME_8723B, 0x70);
> > -
> > - /* ARFB table 9 for 11ac 5G 2SS */
> > - rtw_write32(Adapter, REG_ARFR0_8723B, 0x00000010);
> > - if (IS_NORMAL_CHIP(pHalData->VersionID))
> > - rtw_write32(Adapter, REG_ARFR0_8723B+4, 0xfffff000);
> > - else
> > - rtw_write32(Adapter, REG_ARFR0_8723B+4, 0x3e0ff000);
> > -
> > - /* ARFB table 10 for 11ac 5G 1SS */
> > - rtw_write32(Adapter, REG_ARFR1_8723B, 0x00000010);
> > - rtw_write32(Adapter, REG_ARFR1_8723B+4, 0x003ff000);
> > }
> >
> > static void ResumeTxBeacon(struct adapter *padapter)
> >
>

ok, I will drop it in next v2.

Thank you for review,

fabio