Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wifi: rtw88: add quirk to disable deep LPS for ASUS VivoBook X515JA
@ 2026-05-03 16:49 Gabriel Maia
  2026-05-06  8:48 ` Ping-Ke Shih
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel Maia @ 2026-05-03 16:49 UTC (permalink / raw)
  To: linux-wireless; +Cc: pkshih, kvalo, Gabriel Maia

On ASUS VivoBook X515JA laptops equipped with a Realtek RTL8821CE
802.11ac PCIe adapter (PCI ID: 10ec:c821, subsystem: 1a3b:3040),
the driver periodically emits the following messages:

  rtw88_8821ce 0000:01:00.0: firmware failed to leave lps state
  rtw88_8821ce 0000:01:00.0: failed to send h2c command

The firmware fails to leave the Low Power State (LPS) in time,
causing subsequent h2c commands to be dropped. Disable deep LPS
to avoid this issue.

Signed-off-by: Gabriel Maia <gabriel_v_maia@estudante.sesisenai.org.br>
---
 drivers/net/wireless/realtek/rtw88/pci.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c
index bba370ad510c..b0eae0971ef4 100644
--- a/drivers/net/wireless/realtek/rtw88/pci.c
+++ b/drivers/net/wireless/realtek/rtw88/pci.c
@@ -1770,6 +1770,15 @@ static const struct dmi_system_id rtw_pci_quirks[] = {
 		.driver_data = (void *)(BIT(QUIRK_DIS_CAP_PCI_ASPM) |
 					BIT(QUIRK_DIS_CAP_LPS_DEEP)),
 	},
+	{
+		.callback = rtw_pci_disable_caps,
+		.ident = "ASUS VivoBook X515JA",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "VivoBook_ASUSLaptop X515JA_X515JA"),
+		},
+		.driver_data = (void *)BIT(QUIRK_DIS_CAP_LPS_DEEP),
+	},
 	{}
 };
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-11  1:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-03 16:49 [PATCH] wifi: rtw88: add quirk to disable deep LPS for ASUS VivoBook X515JA Gabriel Maia
2026-05-06  8:48 ` Ping-Ke Shih
     [not found]   ` <CAC1kGwEid2rT3KFV_Aqxd-Tz7uS+Yci2PNbaPWJ=R0x4zaVYug@mail.gmail.com>
     [not found]     ` <CAC1kGwHi0AyV+kxjbRQE4TKvAc-3xq+uHUufCjfAnkfF8j=Y4g@mail.gmail.com>
2026-05-11  1:16       ` Ping-Ke Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox