[PATCH] ACPI: resource: Do IRQ override on MECHREVO Yilong15 Series GM5HG0A

nova@bupt.edu.cn posted 1 patch 1 year, 8 months ago
drivers/acpi/resource.c | 6 ++++++
1 file changed, 6 insertions(+)
[PATCH] ACPI: resource: Do IRQ override on MECHREVO Yilong15 Series GM5HG0A
Posted by nova@bupt.edu.cn 1 year, 8 months ago
From: MuelNova <n@ova.moe>

MECHREVO Yilong15 Serie has a DSDT table that describes IRQ 1 as ActiveLow
while the kernel is overriding it to Edge_High. This prevents the internal
keyboard from working. This patch prevents this issue by adding this laptop
to the override table that prevents the kernel from overriding this IRQ

Signed-off-by: MuelNova <n@ova.moe>
---
 drivers/acpi/resource.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
index b5bf8b81a..fed3c5e1b 100644
--- a/drivers/acpi/resource.c
+++ b/drivers/acpi/resource.c
@@ -540,6 +540,12 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
  * to have a working keyboard.
  */
 static const struct dmi_system_id irq1_edge_low_force_override[] = {
+	{
+		/* MECHREVO Yilong15 Series GM5HG0A */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "GM5HG0A"),
+		},
+	},
 	{
 		/* XMG APEX 17 (M23) */
 		.matches = {
-- 
2.45.1