diff mbox series

ACPI: resource: Fix IRQ override quirk for PCSpecialist Elimina Pro 16 M

Message ID 20230821090927.305926-1-hdegoede@redhat.com (mailing list archive)
State Mainlined, archived
Headers show
Series ACPI: resource: Fix IRQ override quirk for PCSpecialist Elimina Pro 16 M | expand

Commit Message

Hans de Goede Aug. 21, 2023, 9:09 a.m. UTC
It turns out that some PCSpecialist Elimina Pro 16 M models
have "GM6BGEQ" as DMI product-name instead of "Elimina Pro 16 M",
causing the existing DMI quirk to not work on these models.

The DMI board-name is always "GM6BGEQ", so match on that instead.

Fixes: 56fec0051a69 ("ACPI: resource: Add IRQ override quirk for PCSpecialist Elimina Pro 16 M")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217394#c36
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/acpi/resource.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Rafael J. Wysocki Aug. 21, 2023, 10:19 a.m. UTC | #1
On Mon, Aug 21, 2023 at 11:09 AM Hans de Goede <hdegoede@redhat.com> wrote:
>
> It turns out that some PCSpecialist Elimina Pro 16 M models
> have "GM6BGEQ" as DMI product-name instead of "Elimina Pro 16 M",
> causing the existing DMI quirk to not work on these models.
>
> The DMI board-name is always "GM6BGEQ", so match on that instead.
>
> Fixes: 56fec0051a69 ("ACPI: resource: Add IRQ override quirk for PCSpecialist Elimina Pro 16 M")
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=217394#c36
> Cc: All applicable <stable@vger.kernel.org>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
>  drivers/acpi/resource.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
> index a4d9f149b48d..32cfa3f4efd3 100644
> --- a/drivers/acpi/resource.c
> +++ b/drivers/acpi/resource.c
> @@ -501,9 +501,13 @@ static const struct dmi_system_id maingear_laptop[] = {
>  static const struct dmi_system_id pcspecialist_laptop[] = {
>         {
>                 .ident = "PCSpecialist Elimina Pro 16 M",
> +               /*
> +                * Some models have product-name "Elimina Pro 16 M",
> +                * others "GM6BGEQ". Match on board-name to match both.
> +                */
>                 .matches = {
>                         DMI_MATCH(DMI_SYS_VENDOR, "PCSpecialist"),
> -                       DMI_MATCH(DMI_PRODUCT_NAME, "Elimina Pro 16 M"),
> +                       DMI_MATCH(DMI_BOARD_NAME, "GM6BGEQ"),
>                 },
>         },
>         { }
> --

Applied as 6.5-rc material, thanks!
diff mbox series

Patch

diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
index a4d9f149b48d..32cfa3f4efd3 100644
--- a/drivers/acpi/resource.c
+++ b/drivers/acpi/resource.c
@@ -501,9 +501,13 @@  static const struct dmi_system_id maingear_laptop[] = {
 static const struct dmi_system_id pcspecialist_laptop[] = {
 	{
 		.ident = "PCSpecialist Elimina Pro 16 M",
+		/*
+		 * Some models have product-name "Elimina Pro 16 M",
+		 * others "GM6BGEQ". Match on board-name to match both.
+		 */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "PCSpecialist"),
-			DMI_MATCH(DMI_PRODUCT_NAME, "Elimina Pro 16 M"),
+			DMI_MATCH(DMI_BOARD_NAME, "GM6BGEQ"),
 		},
 	},
 	{ }