]> git.itanic.dy.fi Git - linux-stable/commitdiff
platform/x86/amd: pmf: Add quirk for ROG Zephyrus G14
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 10 Apr 2024 14:09:56 +0000 (09:09 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 16 Apr 2024 12:17:32 +0000 (15:17 +0300)
ROG Zephyrus G14 advertises support for SPS notifications to the
BIOS but doesn't actually use them. Instead the asus-nb-wmi driver
utilizes such events.

Add a quirk to prevent the system from registering for ACPI platform
profile when this system is found to avoid conflicts.

Reported-by: al0uette@outlook.com
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218685
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20240410140956.385-3-mario.limonciello@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/pmf/pmf-quirks.c

index 9f3790eaaa300575862c7c036175aa9b91df0c37..0b2eb0ae85febdfcc62fbffddf231889f7842e22 100644 (file)
@@ -21,6 +21,14 @@ static struct quirk_entry quirk_no_sps_bug = {
 };
 
 static const struct dmi_system_id fwbug_list[] = {
+       {
+               .ident = "ROG Zephyrus G14",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "GA403UV"),
+               },
+               .driver_data = &quirk_no_sps_bug,
+       },
        {}
 };