Skip to content

Commit 475c9f5

Browse files
committed
Merge tag 'acpi-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fixes from Rafael Wysocki: "Add two more ACPI IRQ override quirks and update the code using them to avoid unnecessary overhead (Hans de Goede)" * tag 'acpi-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: resource: acpi_dev_irq_override(): Check DMI match last ACPI: resource: Add TongFang GM5HG0A to irq1_edge_low_force_override[] ACPI: resource: Add Asus Vivobook X1504VAP to irq1_level_low_skip_override[]
2 parents e0daef7 + cd4a7b2 commit 475c9f5

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

drivers/acpi/resource.c

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,13 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
440440
DMI_MATCH(DMI_BOARD_NAME, "S5602ZA"),
441441
},
442442
},
443+
{
444+
/* Asus Vivobook X1504VAP */
445+
.matches = {
446+
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
447+
DMI_MATCH(DMI_BOARD_NAME, "X1504VAP"),
448+
},
449+
},
443450
{
444451
/* Asus Vivobook X1704VAP */
445452
.matches = {
@@ -646,6 +653,17 @@ static const struct dmi_system_id irq1_edge_low_force_override[] = {
646653
DMI_MATCH(DMI_BOARD_NAME, "GMxHGxx"),
647654
},
648655
},
656+
{
657+
/*
658+
* TongFang GM5HG0A in case of the SKIKK Vanaheim relabel the
659+
* board-name is changed, so check OEM strings instead. Note
660+
* OEM string matches are always exact matches.
661+
* https://bugzilla.kernel.org/show_bug.cgi?id=219614
662+
*/
663+
.matches = {
664+
DMI_EXACT_MATCH(DMI_OEM_STRING, "GM5HG0A"),
665+
},
666+
},
649667
{ }
650668
};
651669

@@ -671,11 +689,11 @@ static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity,
671689
for (i = 0; i < ARRAY_SIZE(override_table); i++) {
672690
const struct irq_override_cmp *entry = &override_table[i];
673691

674-
if (dmi_check_system(entry->system) &&
675-
entry->irq == gsi &&
692+
if (entry->irq == gsi &&
676693
entry->triggering == triggering &&
677694
entry->polarity == polarity &&
678-
entry->shareable == shareable)
695+
entry->shareable == shareable &&
696+
dmi_check_system(entry->system))
679697
return entry->override;
680698
}
681699

0 commit comments

Comments
 (0)