From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: William Hansen-Baird <william.hansen.baird@gmail.com>
Cc: pkshih@realtek.com, linux-wireless@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH rtw-next 2/3] wifi: rtlwifi: convert pci ID if-statement to table
Date: Wed, 17 Jun 2026 10:26:53 +0200 [thread overview]
Message-ID: <ajJZtfguHz1BUlD5@monoceros> (raw)
In-Reply-To: <20260614135508.70307-3-william.hansen.baird@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]
On Sun, Jun 14, 2026 at 03:55:07PM +0200, William Hansen-Baird wrote:
> Refactor the ASUSTek quirk logic from an if-statement to a standard
> pci_device_id table. This allows future devices with the same quirk
> to be added more easily and avoiding a large if-chain.
>
> Signed-off-by: William Hansen-Baird <william.hansen.baird@gmail.com>
> ---
> drivers/net/wireless/realtek/rtlwifi/pci.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.c b/drivers/net/wireless/realtek/rtlwifi/pci.c
> index 4ef1faf649e9..03b743809258 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/pci.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/pci.c
> @@ -31,6 +31,11 @@ static const u8 ac_to_hwq[] = {
> BK_QUEUE
> };
>
> +static const struct pci_device_id rtl8723be_aspm_quirks[] = {
> + { PCI_DEVICE_SUB(PCI_ANY_ID, PCI_ANY_ID, 0x11ad, 0x1723) },
> + { 0 }
I recently reworked many pci_device_id arrays and en passant made the
terminator an empty initializer with a single space (i.e. `{ }`).
If you resend, adapting to that style would be nice.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-06-17 8:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-14 13:55 [PATCH rtw-next 0/3] wifi: rtlwifi: fix ASPM AER flooding on RTL8723BE devices William Hansen-Baird
2026-06-14 13:55 ` [PATCH rtw-next 1/3] wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding William Hansen-Baird
2026-06-15 1:26 ` Ping-Ke Shih
2026-06-14 13:55 ` [PATCH rtw-next 2/3] wifi: rtlwifi: convert pci ID if-statement to table William Hansen-Baird
2026-06-15 1:37 ` Ping-Ke Shih
2026-06-17 8:26 ` Uwe Kleine-König [this message]
2026-06-14 13:55 ` [PATCH rtw-next 3/3] wifi: rtlwifi: disable ASPM for RTL8723BE with subsystem ID 17aa:b736 William Hansen-Baird
2026-06-15 1:41 ` Ping-Ke Shih
2026-06-15 19:02 ` William Hansen-Baird
2026-06-16 14:16 ` [PATCH rtw-next v2 0/3] wifi: rtlwifi: fix ASPM AER flooding on RTL8723BE devices William Hansen-Baird
2026-06-16 14:16 ` [PATCH rtw-next v2 1/3] wifi: rtlwifi: fix disabling of ASPM for RTL8723BE with AER flooding William Hansen-Baird
2026-06-17 8:18 ` Ping-Ke Shih
2026-06-22 14:47 ` William Hansen-Baird
2026-06-16 14:16 ` [PATCH rtw-next v2 2/3] wifi: rtlwifi: convert pci if-statement to ID table William Hansen-Baird
2026-06-17 8:22 ` Ping-Ke Shih
2026-06-16 14:16 ` [PATCH rtw-next v2 3/3] wifi: rtlwifi: disable ASPM for RTL8723BE with subsystem ID 17aa:b736 William Hansen-Baird
2026-06-17 8:24 ` Ping-Ke Shih
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=ajJZtfguHz1BUlD5@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=pkshih@realtek.com \
--cc=william.hansen.baird@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