OSDN Git Service

rtw88: add quirk to disable pci caps on HP 250 G7 Notebook PC
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 19 Nov 2021 05:24:37 +0000 (13:24 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 26 Nov 2021 16:20:38 +0000 (18:20 +0200)
8821CE causes random freezes on HP 250 G7 Notebook PC. Add a quirk
to disable pci ASPM capability.

Reported-by: rtl8821cerfe2 <rtl8821cerfe2@protonmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211119052437.8671-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/pci.c

index a7a6ebf..3b367c9 100644 (file)
@@ -1738,6 +1738,15 @@ static const struct dmi_system_id rtw88_pci_quirks[] = {
                },
                .driver_data = (void *)BIT(QUIRK_DIS_PCI_CAP_ASPM),
        },
+       {
+               .callback = disable_pci_caps,
+               .ident = "HP HP 250 G7 Notebook PC",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "HP"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "HP 250 G7 Notebook PC"),
+               },
+               .driver_data = (void *)BIT(QUIRK_DIS_PCI_CAP_ASPM),
+       },
        {}
 };