From patchwork Mon Jun 20 15:30:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuanhong Guo X-Patchwork-Id: 12887823 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 329F8C43334 for ; Mon, 20 Jun 2022 15:31:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244069AbiFTPbD (ORCPT ); Mon, 20 Jun 2022 11:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237936AbiFTPbC (ORCPT ); Mon, 20 Jun 2022 11:31:02 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B05C389D; Mon, 20 Jun 2022 08:30:58 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id h9-20020a17090a648900b001ecb8596e43so1466508pjj.5; Mon, 20 Jun 2022 08:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UneClahiB/8V7fcxqAn05E3dVB9+CO56fTAaJHRcl6o=; b=KrilvoE7ma+YKbiv6DZy+y+jdvsxIV57L5+1d9ErWT2SPfqflhij0LxeJfdadCKI3o 6MoKn63wjw6AyKisPwRRmcwsTHayPTRRQmbyfNvhPIBicI2xYmYyL/LhHL3tLAHVpPzH v5I9kgoHK0lU/F5rzq2XppWUl5UsCPjoeUJw9uQENBtMdkIRd/GSO8QadehbwKec62fl cJvxXjvVCQtFSaqvyabEqAOxpz2if8nC1pHs8/GFRRdc93VhV+VIoWNtQMVU38w303Pl 9sE2n3nyjV8OjNClaLO+aFqR8GmFEj3RXZY7DtS1ZhfeBJxNYyITHKLfXkJ+hIZXPC4x NBRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UneClahiB/8V7fcxqAn05E3dVB9+CO56fTAaJHRcl6o=; b=PliDwes+0A93mJ1FFtwY/PTP1nSU0sJ5u+r6aM2BCSopr2uJX2CqZGdAxlJ2xkqHeL XbbUt4qWwjteDtbL5PncCAedPBiCTXGC2qBpjKEEQFdq6+IpbNkw3GsmSz27fDnkcdl5 9XYoMKcd6N1vwtRe11+Ls8hFC1RfE+heLvpbv8/RBtyTq+0MNwuldK7X7SZf+fvuTyGo +8As3fndxEYt4NNF7iyB2Hn+Xq6ISIsGfYo/FabITljKnGDVy1dnp+ZDq+0zUqpubXHu 17NzdewKw2IYBlf2gM5TqCSzscAZ8EOLe2MsA5NCDAAxGV9YTULFz4QyAV9OPdgLbI1M hLEg== X-Gm-Message-State: AJIora8JQIRvPEJxzfUZg9yNMf7L0qekVqM2Fg8eAt1ZsDo7UEPF2FHU QR8k3dscg+QSyhXOK5Y4QqoOFiXMlWNfmA== X-Google-Smtp-Source: AGRyM1uX7bIyXEqF+8nFHXku7R0MuJZB4Fh8Xw59dBkBKgAH56MQxnmE/grn5NK/3czQRSQ6ePWz6g== X-Received: by 2002:a17:902:8b85:b0:168:d854:be84 with SMTP id ay5-20020a1709028b8500b00168d854be84mr24454730plb.94.1655739057404; Mon, 20 Jun 2022 08:30:57 -0700 (PDT) Received: from guoguo-omen.lan ([2401:c080:1400:4da2:b701:47d5:9291:4cf9]) by smtp.gmail.com with ESMTPSA id t63-20020a628142000000b0051c03229a2bsm2038856pfd.21.2022.06.20.08.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 08:30:57 -0700 (PDT) From: Chuanhong Guo To: linux-acpi@vger.kernel.org Cc: Chuanhong Guo , stable@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 1/3] ACPI: skip IRQ1 override on Lenovo ThinkBook 14G4+ ARA Date: Mon, 20 Jun 2022 23:30:43 +0800 Message-Id: <20220620153045.11129-2-gch981213@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620153045.11129-1-gch981213@gmail.com> References: <20220620153045.11129-1-gch981213@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org The IRQ is described as (Edge, ActiveLow, Shared, ) in ACPI DSDT and it's correct. The override makes the keyboard interrupt polarity inverted, resulting in non-functional keyboard. Add an entry for skipping the override. Cc: Signed-off-by: Chuanhong Guo --- Change since v1: Match DMI_PRODUCT_NAME for ThinkBook because the board name is used for other completely different Lenovo laptops. Change since v2: fix alphabetical order in skip_override_table drivers/acpi/resource.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index c2d494784425..f888c62b8b96 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -399,6 +399,17 @@ static const struct dmi_system_id medion_laptop[] = { { } }; +static const struct dmi_system_id irq1_edge_low_shared[] = { + { + .ident = "Lenovo ThinkBook 14 G4+ ARA", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "21D0"), + }, + }, + { } +}; + struct irq_override_cmp { const struct dmi_system_id *system; unsigned char irq; @@ -408,6 +419,7 @@ struct irq_override_cmp { }; static const struct irq_override_cmp skip_override_table[] = { + { irq1_edge_low_shared, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1 }, { medion_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0 }, }; From patchwork Mon Jun 20 15:30:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuanhong Guo X-Patchwork-Id: 12887824 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 668A2C433EF for ; Mon, 20 Jun 2022 15:31:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244448AbiFTPbE (ORCPT ); Mon, 20 Jun 2022 11:31:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243012AbiFTPbD (ORCPT ); Mon, 20 Jun 2022 11:31:03 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BB8863CB; Mon, 20 Jun 2022 08:31:01 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id g16-20020a17090a7d1000b001ea9f820449so11086680pjl.5; Mon, 20 Jun 2022 08:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3uX8JEY3yzqZx2k+nAoEseHhd0Ih43vt3Z+l+I/7AYs=; b=h/DJoM3cu3mZ6u/w4qSBvMivfmV1zJUPsVLCeLa0vSLIIj8eShwAaa33T6yRTr7snk kfukuO1tegEL/reVqwitHKGJh8ohe/GydOJlELsTnHJuh48wejtJXgnQ5F6DlU0MvF8d gkEcVQOyAF4MGerzmmjcx+T4I2W2m6UjsyIxb+o8xPGfnxcil530YwloK6Vdd5ojiSZ/ upQ5jXIDNDHehoLQW5k1wByGmn7jmTfB/Q7+nxo/2pJWV1WdNyjgfiPMXje3j6xztLn/ d9EpD2H6raPGiS7tshVBwDxCy99S4DuYo/TSFYgoidWJQ5ZdJqBIeXdY1z0ozsFQLsUO WAJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3uX8JEY3yzqZx2k+nAoEseHhd0Ih43vt3Z+l+I/7AYs=; b=aY5RGhN1IcCOxq2FWQMRwDr6p4JQY71TlA0efbjqrFymAmAxvxYLmmePmw4RnhxCYm M6IBh09DrHsPqRoyUGiGdSxXJ0Y4mrT6x4VUKkHbzHCGuuwh6eXB27j4ZiATDizY0rJF LfjzSnYzJIK8Is2HiQzOPG1XI5iEodl5KGojMPCimyJ5jCSf8llBG/PXhSyYi9HLHevN Gl2dA3ODQQzbvgS+IJ9dyeyOPArCk9zHVApDBS1EDF8RNBHd7UpV/KF0Jrx0jV7/Gd+M tU7UDvc3cnNdeT6dgWFwNuhDfd8rZs58/vayJilH59C9ZzfytkdFdGLbQgPgL910HL5h FTQQ== X-Gm-Message-State: AJIora80Ru7d5wmJLRHdMwBGWJ1qQpttTRqScGkejbHmpl503DDgzUjE xhoQ3z6ZzY+Nt8bYGzeLt90wxvYc30n/Ew== X-Google-Smtp-Source: AGRyM1uTwHDveS7NtQscN0aXr5CXn23zpM9zU6BhF08wXh0NtiBlY2UH7nIG+7T7f9qgVMjzgNhlsA== X-Received: by 2002:a17:90b:3812:b0:1ea:d6e6:1386 with SMTP id mq18-20020a17090b381200b001ead6e61386mr27310620pjb.211.1655739060635; Mon, 20 Jun 2022 08:31:00 -0700 (PDT) Received: from guoguo-omen.lan ([2401:c080:1400:4da2:b701:47d5:9291:4cf9]) by smtp.gmail.com with ESMTPSA id t63-20020a628142000000b0051c03229a2bsm2038856pfd.21.2022.06.20.08.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 08:31:00 -0700 (PDT) From: Chuanhong Guo To: linux-acpi@vger.kernel.org Cc: Chuanhong Guo , stable@vger.kernel.org, Tighe Donnelly , "Rafael J. Wysocki" , Len Brown , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 2/3] ACPI: skip IRQ1 override on Redmi Book Pro 15 2022 Date: Mon, 20 Jun 2022 23:30:44 +0800 Message-Id: <20220620153045.11129-3-gch981213@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620153045.11129-1-gch981213@gmail.com> References: <20220620153045.11129-1-gch981213@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Tighe Donnelly The IRQ is described as (Edge, ActiveLow, Shared, ) in ACPI DSDT and it's correct. The override makes the keyboard interrupt polarity inverted, resulting in non-functional keyboard. Add an entry for skipping the override. Cc: Signed-off-by: Tighe Donnelly Signed-off-by: Chuanhong Guo --- Change since v1: new patch Change since v2: none drivers/acpi/resource.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index f888c62b8b96..30c0d85b2bf2 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -407,6 +407,13 @@ static const struct dmi_system_id irq1_edge_low_shared[] = { DMI_MATCH(DMI_PRODUCT_NAME, "21D0"), }, }, + { + .ident = "Redmi Book Pro 15 2022", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TIMI"), + DMI_MATCH(DMI_BOARD_NAME, "TM2113"), + }, + }, { } }; From patchwork Mon Jun 20 15:30:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuanhong Guo X-Patchwork-Id: 12887825 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE503C433EF for ; Mon, 20 Jun 2022 15:31:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244283AbiFTPbG (ORCPT ); Mon, 20 Jun 2022 11:31:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244472AbiFTPbF (ORCPT ); Mon, 20 Jun 2022 11:31:05 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F3CBB51; Mon, 20 Jun 2022 08:31:04 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id g8so10061507plt.8; Mon, 20 Jun 2022 08:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2O16LCpgM6TvHkr4tsHFJKXyDWr4WK5RTNspHfle58g=; b=Z673sdX4vTRUV4veoRY4P2eP8rTbiscRsyFcvP9q5i/ICTe/QPO94ytZa0PJgCH3WV UsiMDO4sc+pBy6PPGXh1imACrMAm2CwdEDO+SFov5Ioiq1MsRgypwzNFYfiCacZyG89s CViIcHcD8N7bWprl9mUDJEFXvAujIxf8ZTg0smWFGw6KPRnE2SLPVGrHarLsU3u2wjdU DQaxCMzJJkrkK8RAOoDptcETRRZG6ttfcQLyL/5H1O744rFdXQcnf7tzDvxqAQmSPB6H OENDJGWauWD37D82DT/tpFFIaQH5so09V8fsuMC4BhrVs1Y93oL1V3KUN3HeHqvxfAhQ vVUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2O16LCpgM6TvHkr4tsHFJKXyDWr4WK5RTNspHfle58g=; b=NvsNXUYbJy0wvpuxp3dopysJoyTBjtew15KokavVoYaQUPK11xobaFVo7CfbKRJ4aq mQkU/KI/Rs334OIyxbC8wZyzN6IxZ5y8YJN/KqNCNEh9BWvsPuXNI+5102vg9FlR+oT4 2GQaPqw2DCZt3Q9ykNjzyTMM+hEmGS1k5rsN73UEEeYR6NgQWozL+EAsgjHfLFlt9Ru9 vjwa60j6N09TVkWj0IgjXgPVl62vIN6YsL1W/5gT+1PGAQc7mAiFRIPQtLKPIF4d0m5Q wK2QLr1zW5J/Tem3EWuZC4poJUIPCDdRYpcQne4j6nPRFZs7GzMm45I+TN+Xyh7K61Gs nEIg== X-Gm-Message-State: AJIora9weBjkSIc6h9kzwVY5ntWtgVJOzKknCSHqHpXUAgS37/cWgCos 4y0ggjpT6WsK2REXJQuWgVkrrg85h3jGew== X-Google-Smtp-Source: AGRyM1vZag1xQtRKGN30uW8Cb1Jlh9wXT8NPSw/p+dueKdMFYf3qtSJEAg+grbuwu7D/A24csrxhrg== X-Received: by 2002:a17:90b:38c1:b0:1ea:8403:9305 with SMTP id nn1-20020a17090b38c100b001ea84039305mr27318565pjb.11.1655739063864; Mon, 20 Jun 2022 08:31:03 -0700 (PDT) Received: from guoguo-omen.lan ([2401:c080:1400:4da2:b701:47d5:9291:4cf9]) by smtp.gmail.com with ESMTPSA id t63-20020a628142000000b0051c03229a2bsm2038856pfd.21.2022.06.20.08.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 08:31:03 -0700 (PDT) From: Chuanhong Guo To: linux-acpi@vger.kernel.org Cc: Chuanhong Guo , stable@vger.kernel.org, Kent Hou Man , "Rafael J. Wysocki" , Len Brown , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 3/3] ACPI: skip IRQ1 override on Asus Zenbook S 13 OLED UM5302 Date: Mon, 20 Jun 2022 23:30:45 +0800 Message-Id: <20220620153045.11129-4-gch981213@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620153045.11129-1-gch981213@gmail.com> References: <20220620153045.11129-1-gch981213@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Kent Hou Man This laptop also defines its active-low keyboard IRQ in legacy format. Add IRQ override skipping for it. Cc: Signed-off-by: Kent Hou Man Signed-off-by: Chuanhong Guo --- Change since v2: none drivers/acpi/resource.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 30c0d85b2bf2..eff615f51d07 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -400,6 +400,13 @@ static const struct dmi_system_id medion_laptop[] = { }; static const struct dmi_system_id irq1_edge_low_shared[] = { + { + .ident = "Asus Zenbook S 13 OLED UM5302", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_BOARD_NAME, "UM5302TA"), + }, + }, { .ident = "Lenovo ThinkBook 14 G4+ ARA", .matches = {