Skip to content

Instantly share code, notes, and snippets.

@chaeya
Created October 28, 2022 03:25
Show Gist options
  • Save chaeya/bc3297528ae7ca7c7bfaa4866f4e8486 to your computer and use it in GitHub Desktop.
Save chaeya/bc3297528ae7ca7c7bfaa4866f4e8486 to your computer and use it in GitHub Desktop.
--- a/drivers/acpi/resource.c 2022-10-26 19:53:32.000000000 +0900
+++ b/drivers/acpi/resource.c 2022-10-27 21:42:53.732581293 +0900
@@ -399,6 +399,31 @@
{ }
};
+static const struct dmi_system_id asus_laptop[] = {
+ {
+ .ident = "Asus Vivobook K3402ZA",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+ DMI_MATCH(DMI_BOARD_NAME, "K3402ZA"),
+ },
+ },
+ {
+ .ident = "Asus Vivobook K3502ZA",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+ DMI_MATCH(DMI_BOARD_NAME, "K3502ZA"),
+ },
+ },
+ {
+ .ident = "Asus Vivobook S5402ZA",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+ DMI_MATCH(DMI_BOARD_NAME, "S5402ZA"),
+ },
+ },
+ { }
+};
+
struct irq_override_cmp {
const struct dmi_system_id *system;
unsigned char irq;
@@ -409,6 +434,7 @@
static const struct irq_override_cmp skip_override_table[] = {
{ medion_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0 },
+ { asus_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0 },
};
static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment