diff mbox series

rtw88: add quirk to disable pci caps on HP Slim Desktop S01-pF1000i

Message ID 20211224064846.1171-1-mtwget@gmail.com
State New
Headers show
Series rtw88: add quirk to disable pci caps on HP Slim Desktop S01-pF1000i | expand

Commit Message

Yu-Tung Chang Dec. 24, 2021, 6:48 a.m. UTC
8821CE causes random freezes on HP Slim Desktop S01-pF1000i. Add a quirk
to disable pci ASPM capability.

Signed-off-by: Yu-Tung Chang <mtwget@gmail.com>
---
 drivers/net/wireless/realtek/rtw88/pci.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c
index a7a6ebfaa203..f8999d7dee61 100644
--- a/drivers/net/wireless/realtek/rtw88/pci.c
+++ b/drivers/net/wireless/realtek/rtw88/pci.c
@@ -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 Slim Desktop S01-pF1xxx",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "HP"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "HP Slim Desktop S01-pF1xxx"),
+		},
+		.driver_data = (void *)BIT(QUIRK_DIS_PCI_CAP_ASPM),
+	},
 	{}
 };