From: Johnson Tsai <wenjie.tsai@realtek.com>
To: Ping-Ke Shih <pkshih@realtek.com>, Greg KH <gregkh@linuxfoundation.org>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"driver-core@lists.linux.dev" <driver-core@lists.linux.dev>,
"johannes@sipsolutions.net" <johannes@sipsolutions.net>,
Mh_chen <mh_chen@realtek.com>,
"charlesl@valvesoftware.com" <charlesl@valvesoftware.com>,
"sabae@valvesoftware.com" <sabae@valvesoftware.com>
Subject: RE: [PATCH v2 rtw-next 1/2] wifi: rtw89: add dev_id_quirks to driver_info for per-device quirk control
Date: Wed, 27 May 2026 11:48:46 +0000 [thread overview]
Message-ID: <3ce9d9f4d2e3433ba4ddfd04b989ebb5@realtek.com> (raw)
In-Reply-To: <1f68b31265984b4e9e4be7872fe516d5@realtek.com>
On Tuesday, May 26, 2026 9:10, Ping-Ke Shih wrote:
> Greg KH <gregkh@linuxfoundation.org> wrote:
> > On Mon, May 25, 2026 at 04:51:47PM +0800, Ping-Ke Shih wrote:
> > > --- a/drivers/net/wireless/realtek/rtw89/rtw8851be.c
> > > +++ b/drivers/net/wireless/realtek/rtw89/rtw8851be.c
> > > @@ -73,6 +73,7 @@ static const struct rtw89_driver_info
> rtw89_8851be_info = {
> > > .chip = &rtw8851b_chip_info,
> > > .variant = NULL,
> > > .quirks = NULL,
> > > + .dev_id_quirks = 0,
> >
> > Why are you manually adding a "= 0" for these when that's the default?
> > No need to do so, only do it when it is set to something, right?
>
> I'd ask authors spending a little time to fill these default values because
> Realtek WiFi chips have many specific attributes for many chips, and
> somehow it gets messed. For example,
> - miss to fill value for a certain chip
> (people might only force on one chip he wants to fix)
> - for some cases, it should set 0 explicitly as the value
> (such as a threshold value of hardware register)
> - messed up the order of attributes
> People add a field along the existing field across all chips.
> If a field is omitted, somehow people might add the field at wrong place.
> - simply coding rule
> People might forget why, so I'd have a simple rule for them.
>
> I encountered these cases when I processed earlier Realtek WiFi drivers
> (rtlwifi, rtl8xxxu, rtw88), so I'd explicitly fill values to avoid them.
>
Just a gentle follow-up on Ping-Ke's explanation regarding the explicit "= 0" initialization.
If there are no further concerns on this, I will keep the current approach for this part and send out the v3 patch.
Thanks,
Johnson
next prev parent reply other threads:[~2026-05-27 11:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-25 8:51 [PATCH v2 rtw-next 0/2] wifi: rtw89: usb: read serial_number and uuid via sysfs Ping-Ke Shih
2026-05-25 8:51 ` [PATCH v2 rtw-next 1/2] wifi: rtw89: add dev_id_quirks to driver_info for per-device quirk control Ping-Ke Shih
2026-05-25 19:31 ` Greg KH
2026-05-26 1:09 ` Ping-Ke Shih
2026-05-27 11:48 ` Johnson Tsai [this message]
2026-05-25 8:51 ` [PATCH v2 rtw-next 2/2] wifi: rtw89: usb: add serial_number and uuid sysfs attributes for 0x28de:0x2432 Ping-Ke Shih
2026-05-25 19:32 ` Greg KH
2026-05-27 11:46 ` Johnson Tsai
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=3ce9d9f4d2e3433ba4ddfd04b989ebb5@realtek.com \
--to=wenjie.tsai@realtek.com \
--cc=charlesl@valvesoftware.com \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=mh_chen@realtek.com \
--cc=pkshih@realtek.com \
--cc=sabae@valvesoftware.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