public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Josh Hesketh <josh.hesketh@gmail.com>
Cc: Michael Straube <straube.linux@gmail.com>,
	Luka Gejak <lukagejak5@gmail.com>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] staging: rtl8723bs: remove commented out dead code in sdio_halinit.c
Date: Sun, 26 Apr 2026 21:57:25 +0200	[thread overview]
Message-ID: <2026042619-identify-elective-b85f@gregkh> (raw)
In-Reply-To: <20260412150633.12071-1-josh.hesketh@gmail.com>

On Sun, Apr 12, 2026 at 04:06:31PM +0100, Josh Hesketh wrote:
> Remove commented out dead code that have been dead since the
> driver was introduced to staging. Code can be recovered from
> git history if needed.
> 
> Signed-off-by: Josh Hesketh <josh.hesketh@gmail.com>
> Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
> ---
> v2:
>  - Rebased on staging-next
>  - Split into separate patches per feedback
>  - Removed commented out dead code instead of fixing whitespace
>  drivers/staging/rtl8723bs/hal/sdio_halinit.c | 24 --------------------
>  1 file changed, 24 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
> index f2f73c65a636..4d74b14c3cd4 100644
> --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c
> +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
> @@ -46,8 +46,6 @@ u8 _InitPowerOn_8723BS(struct adapter *padapter)
>  	u16 value16;
>  	u32 value32;
>  	u8 ret;
> -/* 	u8 bMacPwrCtrlOn; */
> -
>  
>  	/*  all of these MUST be configured before power on */
>  
> @@ -69,10 +67,6 @@ u8 _InitPowerOn_8723BS(struct adapter *padapter)
>  	value16 |= EnPDN; /*  Enable HW power down and RF on */
>  	rtw_write16(padapter, REG_APS_FSMCO, value16);
>  
> -	/*  Enable CMD53 R/W Operation */
> -/* 	bMacPwrCtrlOn = true; */
> -/* 	rtw_hal_set_hwreg(padapter, HW_VAR_APFM_ON_MAC, &bMacPwrCtrlOn); */
> -
>  	rtw_write8(padapter, REG_CR, 0x00);
>  	/*  Enable MAC DMA/WMAC/SCHEDULE/SEC block */
>  	value16 = rtw_read16(padapter, REG_CR);
> @@ -359,7 +353,6 @@ static void _InitNetworkType(struct adapter *padapter)
>  	value32 = rtw_read32(padapter, REG_CR);
>  
>  	/*  TODO: use the other function to set network type */
> -/* 	value32 = (value32 & ~MASK_NETTYPE) | _NETTYPE(NT_LINK_AD_HOC); */
>  	value32 = (value32 & ~MASK_NETTYPE) | _NETTYPE(NT_LINK_AP);
>  
>  	rtw_write32(padapter, REG_CR, value32);
> @@ -486,9 +479,6 @@ static void _initSdioAggregationSetting(struct adapter *padapter)
>  {
>  	struct hal_com_data	*pHalData = GET_HAL_DATA(padapter);
>  
> -	/*  Tx aggregation setting */
> -/* 	sdio_AggSettingTxUpdate(padapter); */
> -
>  	/*  Rx aggregation setting */
>  	HalRxAggr8723BSdio(padapter);
>  
> @@ -640,9 +630,6 @@ u32 rtl8723bs_hal_init(struct adapter *padapter)
>  		return _SUCCESS;
>  	}
>  
> -	/*  Disable Interrupt first. */
> -/* 	rtw_hal_disable_interrupt(padapter); */
> -
>  	ret = _InitPowerOn_8723BS(padapter);
>  	if (ret == _FAIL)
>  		return _FAIL;
> @@ -661,8 +648,6 @@ u32 rtl8723bs_hal_init(struct adapter *padapter)
>  
>  	rtl8723b_InitializeFirmwareVars(padapter);
>  
> -/* 	SIC_Init(padapter); */
> -
>  	if (pwrctrlpriv->reg_rfoff)
>  		pwrctrlpriv->rf_pwrstate = rf_off;
>  
> @@ -745,11 +730,6 @@ u32 rtl8723bs_hal_init(struct adapter *padapter)
>  	rtw_hal_set_chnl_bw(padapter, padapter->registrypriv.channel,
>  		CHANNEL_WIDTH_20, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HAL_PRIME_CHNL_OFFSET_DONT_CARE);
>  
> -	/*  Record original value for template. This is arough data, we can only use the data */
> -	/*  for power adjust. The value can not be adjustde according to different power!!! */
> -/* 	pHalData->OriginalCckTxPwrIdx = pHalData->CurrentCckTxPwrIdx; */
> -/* 	pHalData->OriginalOfdm24GTxPwrIdx = pHalData->CurrentOfdm24GTxPwrIdx; */
> -
>  	rtl8723b_InitAntenna_Selection(padapter);
>  
>  	/*  */
> @@ -791,8 +771,6 @@ u32 rtl8723bs_hal_init(struct adapter *padapter)
>  	/* ack for xmit mgmt frames. */
>  	rtw_write32(padapter, REG_FWHW_TXQ_CTRL, rtw_read32(padapter, REG_FWHW_TXQ_CTRL) | BIT(12));
>  
> -/* 	pHalData->PreRpwmVal = SdioLocalCmd52Read1Byte(padapter, SDIO_REG_HRPWM1) & 0x80; */
> -
>  	{
>  		pwrctrlpriv->rf_pwrstate = rf_on;
>  
> @@ -1080,8 +1058,6 @@ static void _ReadPROMContent(struct adapter *padapter)
>  	pEEPROM->EepromOrEfuse = (eeValue & BOOT_FROM_EEPROM) ? true : false;
>  	pEEPROM->bautoload_fail_flag = (eeValue & EEPROM_EN) ? false : true;
>  
> -/* 	pHalData->EEType = IS_BOOT_FROM_EEPROM(Adapter) ? EEPROM_93C46 : EEPROM_BOOT_EFUSE; */
> -
>  	_ReadEfuseInfo8723BS(padapter);
>  }
>  
> -- 
> 2.53.0
> 
> 

Does not apply to my tree anymore :(

      parent reply	other threads:[~2026-04-27  3:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-12 15:06 [PATCH v2 1/3] staging: rtl8723bs: remove commented out dead code in sdio_halinit.c Josh Hesketh
2026-04-12 15:06 ` [PATCH v2 2/3] staging: rtl8723bs: fix whitespace issues " Josh Hesketh
2026-04-12 16:05   ` Luka Gejak
2026-04-12 15:06 ` [PATCH v2 3/3] staging: rtl8723bs: remove unnecessary else after return " Josh Hesketh
2026-04-12 16:06   ` Luka Gejak
2026-04-12 16:13     ` Luka Gejak
2026-04-12 16:05 ` [PATCH v2 1/3] staging: rtl8723bs: remove commented out dead code " Luka Gejak
2026-04-12 16:12   ` Luka Gejak
2026-04-26 19:57 ` Greg Kroah-Hartman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026042619-identify-elective-b85f@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=josh.hesketh@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=lukagejak5@gmail.com \
    --cc=straube.linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox