* [PATCH v5] staging: rtl8723bs: Improve clarity of MAR usage [not found] <CGME20240731225631epcas1p2658d1e469ff9339c90542f6dd947746e@epcas1p2.samsung.com> @ 2024-07-31 22:51 ` Manjae Cho 2024-08-01 5:24 ` Philipp Hortmann 0 siblings, 1 reply; 2+ messages in thread From: Manjae Cho @ 2024-07-31 22:51 UTC (permalink / raw) To: gregkh; +Cc: linux-staging, linux-kernel, Manjae Cho This patch improves the readability of the code related to the Multicast Address Register (REG_MAR) in the rtl8723bs driver. It adds comments to clarify the purpose and offset of the register, making the code more self-documenting without introducing new macros. Signed-off-by: Manjae Cho <manjae.cho@samsung.com> --- v5: - Maintain consistent patch versioning - Add change history v4: - Refine commit message - Adjust comment wording v3: - Remove MAR0 and MAR4 definitions - Add comments for clarity instead of new macros - Maintain existing REG_MAR usage v2: - Update patch title - Improve commit message v1: - Initial version: Introduce MAR0 and MAR4 definitions drivers/staging/rtl8723bs/hal/sdio_halinit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c index c9cd6578f7f8..535cd439121d 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c @@ -380,8 +380,8 @@ static void _InitWMACSetting(struct adapter *padapter) rtw_write32(padapter, REG_RCR, pHalData->ReceiveConfig); /* Accept all multicast address */ - rtw_write32(padapter, REG_MAR, 0xFFFFFFFF); - rtw_write32(padapter, REG_MAR + 4, 0xFFFFFFFF); + rtw_write32(padapter, REG_MAR, 0xFFFFFFFF); /* Offset 0x0620-0x0623 */ + rtw_write32(padapter, REG_MAR + 4, 0xFFFFFFFF); /* Offset 0x0624-0x0627 */ /* Accept all data frames */ value16 = 0xFFFF; -- 2.25.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v5] staging: rtl8723bs: Improve clarity of MAR usage 2024-07-31 22:51 ` [PATCH v5] staging: rtl8723bs: Improve clarity of MAR usage Manjae Cho @ 2024-08-01 5:24 ` Philipp Hortmann 0 siblings, 0 replies; 2+ messages in thread From: Philipp Hortmann @ 2024-08-01 5:24 UTC (permalink / raw) To: Manjae Cho, gregkh; +Cc: linux-staging, linux-kernel On 8/1/24 00:51, Manjae Cho wrote: > This patch improves the readability of the code related to the Multicast > Address Register (REG_MAR) in the rtl8723bs driver. It adds comments to > clarify the purpose and offset of the register, making the code more > self-documenting without introducing new macros. > > Signed-off-by: Manjae Cho <manjae.cho@samsung.com> > --- > > v5: > - Maintain consistent patch versioning > - Add change history > > v4: > - Refine commit message > - Adjust comment wording > > v3: > - Remove MAR0 and MAR4 definitions > - Add comments for clarity instead of new macros > - Maintain existing REG_MAR usage > > v2: > - Update patch title > - Improve commit message > > v1: > - Initial version: Introduce MAR0 and MAR4 definitions > > drivers/staging/rtl8723bs/hal/sdio_halinit.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c > index c9cd6578f7f8..535cd439121d 100644 > --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c > +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c > @@ -380,8 +380,8 @@ static void _InitWMACSetting(struct adapter *padapter) > rtw_write32(padapter, REG_RCR, pHalData->ReceiveConfig); > > /* Accept all multicast address */ > - rtw_write32(padapter, REG_MAR, 0xFFFFFFFF); > - rtw_write32(padapter, REG_MAR + 4, 0xFFFFFFFF); > + rtw_write32(padapter, REG_MAR, 0xFFFFFFFF); /* Offset 0x0620-0x0623 */ > + rtw_write32(padapter, REG_MAR + 4, 0xFFFFFFFF); /* Offset 0x0624-0x0627 */ > > /* Accept all data frames */ > value16 = 0xFFFF; Reviewed-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-01 5:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20240731225631epcas1p2658d1e469ff9339c90542f6dd947746e@epcas1p2.samsung.com>
2024-07-31 22:51 ` [PATCH v5] staging: rtl8723bs: Improve clarity of MAR usage Manjae Cho
2024-08-01 5:24 ` Philipp Hortmann
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox