mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Luka Gejak" <luka.gejak@linux.dev>
To: "Bitterblue Smith" <rtl8821cerfe2@gmail.com>,
	"Ping-Ke Shih" <pkshih@realtek.com>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Michael Straube" <straube.linux@gmail.com>,
	"Peter Robinson" <pbrobinson@gmail.com>,
	luka.gejak@linux.dev
Subject: Re: [PATCH v5 rtw-next 1/7] wifi: rtw88: move the shared 88xxa init helpers into the core
Date: Wed, 30 Sep 2026 20:53:47 +0000	[thread overview]
Message-ID: <f90a8af0f5be001599a3ca5072624449460fcd0e@linux.dev> (raw)
In-Reply-To: <17f1504d-4a27-48f1-9c8e-e84a3416c383@gmail.com>

September 30, 2026 at 20:04, "Bitterblue Smith" <rtl8821cerfe2@gmail.com mailto:rtl8821cerfe2@gmail.com?to=%22Bitterblue%20Smith%22%20%3Crtl8821cerfe2%40gmail.com%3E > wrote:


> 
> On 30/09/2026 12:15, Luka Gejak wrote:
> 
> > 
> > The adaptive control, EDCA and CCK power detect helpers in rtw88xxa.c
[...]
> >  @@ -1419,3 +1419,25 @@ int rtw_mac_postinit(struct rtw_dev *rtwdev)
> >  
> >  return chip->ops->mac_postinit(rtwdev);
> >  }
> >  +
> >  +void rtw_mac_init_adaptive_ctrl(struct rtw_dev *rtwdev)
> >  +{
> >  + rtw_write32_mask(rtwdev, REG_RRSR, 0xfffff, 0xffff1);
> >  + rtw_write16(rtwdev, REG_RETRY_LIMIT, 0x3030);
> >  +}
> >  +EXPORT_SYMBOL(rtw_mac_init_adaptive_ctrl);
> >  +
> >  +void rtw_mac_init_edca(struct rtw_dev *rtwdev)
> >  +{
> >  + rtw_write16(rtwdev, REG_SPEC_SIFS, 0x100a);
> >  + rtw_write16(rtwdev, REG_MAC_SPEC_SIFS, 0x100a);
> >  +
> >  + rtw_write16(rtwdev, REG_SIFS, 0x100a);
> >  + rtw_write16(rtwdev, REG_SIFS + 2, 0x100a);
> >  +
> >  + rtw_write32(rtwdev, REG_EDCA_BE_PARAM, 0x005EA42B);
> >  + rtw_write32(rtwdev, REG_EDCA_BK_PARAM, 0x0000A44F);
> >  + rtw_write32(rtwdev, REG_EDCA_VI_PARAM, 0x005EA324);
> >  + rtw_write32(rtwdev, REG_EDCA_VO_PARAM, 0x002FA226);
> >  +}
> >  +EXPORT_SYMBOL(rtw_mac_init_edca);
> > 
> No one said anything about moving these functions. Please put them back.
> 

They came from Ping-Ke's review of the chip driver, where he asked
whether the chip can reuse the existing code since the values are the
same. Moving the identical writes to mac.c was the answer to that, and
it also removed the last reason for RTW88_8723B to select RTW88_88XXA.

I will put them back per your request. The chip driver writes those two
again, as it did in v4.

Best regards,
Luka Gejak

  reply	other threads:[~2026-09-30 20:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-30  9:15 [PATCH v5 rtw-next 0/7] wifi: rtw88: add RTL8723B/RTL8723BS support Luka Gejak
2026-09-30  9:15 ` [PATCH v5 rtw-next 1/7] wifi: rtw88: move the shared 88xxa init helpers into the core Luka Gejak
2026-09-30 18:04   ` Bitterblue Smith
2026-09-30 20:53     ` Luka Gejak [this message]
2026-09-30  9:15 ` [PATCH v5 rtw-next 2/7] wifi: rtw88: assign the RCR per chip in rtw_core_init Luka Gejak
2026-09-30 18:03   ` Bitterblue Smith
2026-09-30 20:36     ` Luka Gejak
2026-09-30 21:27       ` Bitterblue Smith
2026-09-30 21:29         ` Luka Gejak
2026-09-30 21:46           ` Bitterblue Smith
2026-09-30 21:49             ` Luka Gejak
2026-09-30  9:16 ` [PATCH v5 rtw-next 3/7] wifi: rtw88: 8723b: add the RTL8723B register definitions Luka Gejak
2026-09-30  9:16 ` [PATCH v5 rtw-next 4/7] wifi: rtw88: 8723b: add the RTL8723B BB, RF and AGC tables Luka Gejak
2026-09-30  9:16 ` [PATCH v5 rtw-next 5/7] wifi: rtw88: 8723b: add the RTL8723B chip driver Luka Gejak
2026-09-30 18:03   ` Bitterblue Smith
2026-09-30 21:14     ` Luka Gejak
2026-09-30  9:16 ` [PATCH v5 rtw-next 6/7] wifi: rtw88: 8723bs: add the RTL8723BS SDIO bind Luka Gejak
2026-09-30  9:16 ` [PATCH v5 rtw-next 7/7] wifi: rtw88: 8723bs: enable building the RTL8723BS driver Luka Gejak

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=f90a8af0f5be001599a3ca5072624449460fcd0e@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pbrobinson@gmail.com \
    --cc=pkshih@realtek.com \
    --cc=rtl8821cerfe2@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

all inboxes | Powered by JetHome®