Skip to content

Commit 5fe31f2

Browse files
fusetakgregkh
authored andcommitted
ACPI: resource: Skip IRQ override on Asus Vivobook K3402ZA/K3502ZA
[ Upstream commit e12dee3 ] In the ACPI DSDT table for Asus VivoBook K3402ZA/K3502ZA IRQ 1 is described as ActiveLow; however, the kernel overrides it to Edge_High. This prevents the internal keyboard from working on these laptops. In order to fix this add these laptops to the skip_override_table so that the kernel does not override IRQ 1 to Edge_High. Link: https://bugzilla.kernel.org/show_bug.cgi?id=216158 Reviewed-by: Hui Wang <[email protected]> Tested-by: Tamim Khan <[email protected]> Tested-by: Sunand <[email protected]> Signed-off-by: Tamim Khan <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Stable-dep-of: f3cb9b7 ("ACPI: resource: do IRQ override on Lenovo 14ALC7") Signed-off-by: Sasha Levin <[email protected]>
1 parent 4c5fee0 commit 5fe31f2

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
@@ -399,6 +399,24 @@ static const struct dmi_system_id medion_laptop[] = {
399399
{ }
400400
};
401401

402+
static const struct dmi_system_id asus_laptop[] = {
403+
{
404+
.ident = "Asus Vivobook K3402ZA",
405+
.matches = {
406+
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
407+
DMI_MATCH(DMI_BOARD_NAME, "K3402ZA"),
408+
},
409+
},
410+
{
411+
.ident = "Asus Vivobook K3502ZA",
412+
.matches = {
413+
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
414+
DMI_MATCH(DMI_BOARD_NAME, "K3502ZA"),
415+
},
416+
},
417+
{ }
418+
};
419+
402420
struct irq_override_cmp {
403421
const struct dmi_system_id *system;
404422
unsigned char irq;
@@ -409,6 +427,7 @@ struct irq_override_cmp {
409427

410428
static const struct irq_override_cmp skip_override_table[] = {
411429
{ medion_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0 },
430+
{ asus_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0 },
412431
};
413432

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

0 commit comments

Comments
 (0)