]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86: alienware-wmi-wmax: Fix "Alienware m16 R1 AMD" quirk order
authorKurt Borja <kuurtb@gmail.com>
Mon, 3 Nov 2025 19:01:44 +0000 (14:01 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 6 Nov 2025 12:19:21 +0000 (14:19 +0200)
Quirks are matched using dmi_first_match(), therefore move the
"Alienware m16 R1 AMD" entry above other m16 entries.

Reported-by: Cihan Ozakca <cozakca@outlook.com>
Fixes: e2468dc70074 ("Revert "platform/x86: alienware-wmi-wmax: Add G-Mode support to Alienware m16 R1"")
Cc: stable@vger.kernel.org
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Link: https://patch.msgid.link/20251103-family-supp-v1-1-a241075d1787@gmail.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/dell/alienware-wmi-wmax.c

index f417dcc9af355d3150d4280d86bead9199b7d6d2..53f47660426915f9b6d8450119c92e2418ae15d2 100644 (file)
@@ -122,20 +122,20 @@ static const struct dmi_system_id awcc_dmi_table[] __initconst = {
                .driver_data = &generic_quirks,
        },
        {
-               .ident = "Alienware m16 R1",
+               .ident = "Alienware m16 R1 AMD",
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
-                       DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R1"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R1 AMD"),
                },
-               .driver_data = &g_series_quirks,
+               .driver_data = &generic_quirks,
        },
        {
-               .ident = "Alienware m16 R1 AMD",
+               .ident = "Alienware m16 R1",
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
-                       DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R1 AMD"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R1"),
                },
-               .driver_data = &generic_quirks,
+               .driver_data = &g_series_quirks,
        },
        {
                .ident = "Alienware m16 R2",