From patchwork Mon Apr 8 10:32:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasiliy Kovalev X-Patchwork-Id: 786998 Received: from air.basealt.ru (air.basealt.ru [194.107.17.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D174458124; Mon, 8 Apr 2024 10:32:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.107.17.39 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712572348; cv=none; b=shTaU1F/+ng6hMXhFJsj1kHvIERN8MmdRhaJ8L4XwLDgaCOH6mMWejhB+tyzEp1ifL8Au349/FBE59EE/dziskjj0hXwS8Xc7jnykSDs/OErqg20IkDta9LsAdbsva1uXKPQdGUJmbkJlfhFFJQ3iVQDzT13TGK0mwRWyxF3cHY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712572348; c=relaxed/simple; bh=Mvzgnx3Xc+01j6Y4a3i4qvU0y1pw+PiGidPS4wPO1CU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pHSubo9ZLrkZ91vnOYc7emKAzoiYAvfEqGOl202+uKKL0vLlUbH+thhopBuETtTi6VPTYkqtlySZMk3nTp34lgHJ1bDLnPFsw3QVCCTxiOcvIfZqiL3oNlFaqIHob0ByUSXGlF+qF2C2ldKh0poQuTzPIbAOtV5D78fdrtw9eqg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org; spf=pass smtp.mailfrom=altlinux.org; arc=none smtp.client-ip=194.107.17.39 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=altlinux.org Received: by air.basealt.ru (Postfix, from userid 490) id 391CB2F2026E; Mon, 8 Apr 2024 10:32:25 +0000 (UTC) X-Spam-Level: Received: from altlinux.malta.altlinux.ru (obninsk.basealt.ru [217.15.195.17]) by air.basealt.ru (Postfix) with ESMTPSA id 332582F2025B; Mon, 8 Apr 2024 10:32:10 +0000 (UTC) From: kovalev@altlinux.org To: stable@vger.kernel.org Cc: rafael@kernel.org, lenb@kernel.org, pavel@ucw.cz, hdegoede@redhat.com, linux-acpi@vger.kernel.org, kovalev@altlinux.org Subject: [PATCH 6.1.y 11/14] ACPI: resource: Skip IRQ override on ASUS ExpertBook B1502CGA Date: Mon, 8 Apr 2024 13:32:04 +0300 Message-Id: <20240408103207.197423-12-kovalev@altlinux.org> X-Mailer: git-send-email 2.33.8 In-Reply-To: <20240408103207.197423-1-kovalev@altlinux.org> References: <20240408103207.197423-1-kovalev@altlinux.org> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Michael Maltsev commit e315e8692f7922cd1b2a26bd7a1741cc8ce77085 upstream. Like the ASUS ExpertBook B1502CBA and various ASUS laptops, the ASUS ExpertBook B1502CGA has an ACPI DSDT table that describes IRQ 1 as ActiveLow while the kernel overrides it to Edge_High. $ sudo dmesg | grep DMI [ 0.000000] DMI: ASUSTeK COMPUTER INC. ASUS EXPERTBOOK B1502CGA_B1502CGA/B1502CGA, BIOS B1502CGA.303 06/05/2023 $ grep -A 40 PS2K dsdt.dsl | grep IRQ -A 1 IRQ (Level, ActiveLow, Exclusive, ) {1} This prevents the keyboard from working. To fix this issue, add this laptop to the skip_override_table so that the kernel does not override IRQ 1. Signed-off-by: Michael Maltsev [ rjw: rebase, replace .ident field with a comment ] Signed-off-by: Rafael J. Wysocki Signed-off-by: Vasiliy Kovalev --- drivers/acpi/resource.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index d5cac22b6b7261..5697ccf902184e 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -461,6 +461,13 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = { DMI_MATCH(DMI_BOARD_NAME, "B1502CBA"), }, }, + { + /* Asus ExpertBook B1502CGA */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_BOARD_NAME, "B1502CGA"), + }, + }, { /* Asus ExpertBook B2402CBA */ .matches = {