Skip to content

Commit cb18703

Browse files
AdamNiedererrafaeljw
authored andcommitted
ACPI: resource: Add IRQ overrides for MAINGEAR Vector Pro 2 models
Fix a regression introduced by commit 9946e39 ("ACPI: resource: skip IRQ override on AMD Zen platforms") on MAINGEAR Vector Pro 2 systems, which causes the built-in keyboard to not work. This restores the functionality by adding an IRQ override. No other IRQs were being overridden before, so this should be all that is needed for these systems. I have personally tested this on the 15" model (MG-VCP2-15A3070T), and I have confirmation that the issue is present on the 17" model (MG-VCP2-17A3070T). Fixes: 9946e39 ("ACPI: resource: skip IRQ override on AMD Zen platforms") Signed-off-by: Adam Niederer <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 77c7248 commit cb18703

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

drivers/acpi/resource.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,24 @@ static const struct dmi_system_id schenker_gm_rg[] = {
478478
{ }
479479
};
480480

481+
static const struct dmi_system_id maingear_laptop[] = {
482+
{
483+
.ident = "MAINGEAR Vector Pro 2 15",
484+
.matches = {
485+
DMI_MATCH(DMI_SYS_VENDOR, "Micro Electronics Inc"),
486+
DMI_MATCH(DMI_PRODUCT_NAME, "MG-VCP2-15A3070T"),
487+
}
488+
},
489+
{
490+
.ident = "MAINGEAR Vector Pro 2 17",
491+
.matches = {
492+
DMI_MATCH(DMI_SYS_VENDOR, "Micro Electronics Inc"),
493+
DMI_MATCH(DMI_PRODUCT_NAME, "MG-VCP2-17A3070T"),
494+
},
495+
},
496+
{ }
497+
};
498+
481499
struct irq_override_cmp {
482500
const struct dmi_system_id *system;
483501
unsigned char irq;
@@ -493,6 +511,7 @@ static const struct irq_override_cmp override_table[] = {
493511
{ lenovo_laptop, 6, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0, true },
494512
{ lenovo_laptop, 10, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0, true },
495513
{ schenker_gm_rg, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1, true },
514+
{ maingear_laptop, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1, true },
496515
};
497516

498517
static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity,

0 commit comments

Comments
 (0)