ACPI: resource: Skip IRQ override on Asus Vivobook S5602ZA

Message ID 20221014051931.155483-1-tamim@fusetak.com
State New
Headers
Series ACPI: resource: Skip IRQ override on Asus Vivobook S5602ZA |

Commit Message

Tamim Khan Oct. 14, 2022, 5:19 a.m. UTC
  Like the Asus Vivobook K3402ZA/K3502ZA/S5402ZA Asus Vivobook S5602ZA
has an ACPI DSDT table the describes IRQ 1 as ActiveLow while the kernel
overrides it to Edge_High. This prevents the keyboard on this laptop
from working. To fix this add this laptop to the skip_override_table so
that the kernel does not override IRQ 1.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=216579
Tested-by: Dzmitry <wrkedm@gmail.com>
Signed-off-by: Tamim Khan <tamim@fusetak.com>
---
This patch is similar to e12dee3736731e24b1e7367f87d66ac0fcd73ce7
(ACPI: resource: Skip IRQ override on Asus Vivobook K3402ZA/K3502Z) and
6e5cbe7c4b41824e500acbb42411da692d1435f1 (ACPI: resource: Add ASUS model
S5402ZA to quirks) and just adds another Asus Vivobook that has the
same IRQ override problem

 drivers/acpi/resource.c | 7 +++++++
 1 file changed, 7 insertions(+)
  

Comments

Rafael J. Wysocki Oct. 26, 2022, 11:42 a.m. UTC | #1
On Fri, Oct 14, 2022 at 7:22 AM Tamim Khan <tamim@fusetak.com> wrote:
>
> Like the Asus Vivobook K3402ZA/K3502ZA/S5402ZA Asus Vivobook S5602ZA
> has an ACPI DSDT table the describes IRQ 1 as ActiveLow while the kernel
> overrides it to Edge_High. This prevents the keyboard on this laptop
> from working. To fix this add this laptop to the skip_override_table so
> that the kernel does not override IRQ 1.
>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=216579
> Tested-by: Dzmitry <wrkedm@gmail.com>
> Signed-off-by: Tamim Khan <tamim@fusetak.com>
> ---
> This patch is similar to e12dee3736731e24b1e7367f87d66ac0fcd73ce7
> (ACPI: resource: Skip IRQ override on Asus Vivobook K3402ZA/K3502Z) and
> 6e5cbe7c4b41824e500acbb42411da692d1435f1 (ACPI: resource: Add ASUS model
> S5402ZA to quirks) and just adds another Asus Vivobook that has the
> same IRQ override problem
>
>  drivers/acpi/resource.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
> index 6f9489edfb4e..0270421d12db 100644
> --- a/drivers/acpi/resource.c
> +++ b/drivers/acpi/resource.c
> @@ -425,6 +425,13 @@ static const struct dmi_system_id asus_laptop[] = {
>                         DMI_MATCH(DMI_BOARD_NAME, "S5402ZA"),
>                 },
>         },
> +       {
> +               .ident = "Asus Vivobook S5602ZA",
> +               .matches = {
> +                       DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> +                       DMI_MATCH(DMI_BOARD_NAME, "S5602ZA"),
> +               },
> +       },
>         { }
>  };
>
> --

Applied as 6.1-rc material, thanks!
  

Patch

diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
index 6f9489edfb4e..0270421d12db 100644
--- a/drivers/acpi/resource.c
+++ b/drivers/acpi/resource.c
@@ -425,6 +425,13 @@  static const struct dmi_system_id asus_laptop[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "S5402ZA"),
 		},
 	},
+	{
+		.ident = "Asus Vivobook S5602ZA",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+			DMI_MATCH(DMI_BOARD_NAME, "S5602ZA"),
+		},
+	},
 	{ }
 };