Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22261101rwd; Fri, 30 Jun 2023 06:05:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlH99GlAZtObZBd5U+KbB6fbEz1BjZXItaCaQSzCDKHLG+aFoAGVbG56FMrFCceTeiAzdGgE X-Received: by 2002:a05:6a00:1953:b0:678:ee57:7b29 with SMTP id s19-20020a056a00195300b00678ee577b29mr2494897pfk.30.1688130304762; Fri, 30 Jun 2023 06:05:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688130304; cv=pass; d=google.com; s=arc-20160816; b=wuzNUr0GYLDqj5+NayCABuqNOPkEDvZPd/ABKoujP68ywB/kQLdttsLQtOIaxxD4sp Hdg7Xh8y7OctLg/oHB9gXiJAcXcHzCWpHUuUa9Yjr38cq/qZJyZWqrfUihOrKzA96BoQ mYF6hXunsSyuTaOVoozbXz6AX1yW0peQPTncjMeKln+d+nVbSxsDhOyVtmeKClArJGL5 /MZoIaGeS1YNUoMKSizY8qF1bNO0eFgptJZ28wj52isRCoXHXu6SSe34wHVnWEaFBSx3 7rzoDW0tPgtIwAEBoqtAy/RlDb3qciU/0o+evA187K8Ys/cWAC6pbd0EEC/F7SLGj8Pu 5fOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:in-reply-to:message-id:to:from:date :dkim-signature; bh=6LhIr6V17BrdC653wm2u6g1ZGMjqgmuF6Gf290y9Mik=; fh=+dEpfJDnPS+0NnQ6X5PwSD6wGZj/BWYLFF+SxH7Mnmo=; b=TaWw9hh+1VxU/Y/9eiZx9eA0/dm/aJQCmtJE06A5fjtFkuuRRho2w//kM8XhzlSpfX mWCJSvcrxBrwyahqjlLIrfdZtkuxePPAa/tTX/WQOYkvNVsuEO4ZzcKJJvjTgncbnc6y N0ERrrfD3jxn+gZU/U3VhHV6x4sZRrLHcrF6Bxb6wgbnqyCb6IKCw2gKj3oyq+VOvntf y1uWOPWVomJIfQ1ZpglANQXrNUOPWjEihbQPb+A4hh9H06EOOQb4BhVZHnbBy5NCLikc 2hEOdovJxlfcidoVNbi6duW8tE9HQ/SxmQsGcZgIgQbUUFKYAoDspcajckqZ50rBi2Qf wTjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=LOmNU0Fs; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a056a00238900b0065300b42889si1945635pfc.363.2023.06.30.06.04.41; Fri, 30 Jun 2023 06:05:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=LOmNU0Fs; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232288AbjF3Mg2 (ORCPT + 99 others); Fri, 30 Jun 2023 08:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232168AbjF3MgZ (ORCPT ); Fri, 30 Jun 2023 08:36:25 -0400 X-Greylist: delayed 904 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 30 Jun 2023 05:36:23 PDT Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91E6935AC; Fri, 30 Jun 2023 05:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688127645; cv=none; d=zohomail.com; s=zohoarc; b=Dk//0Njx8FF/AYZDBW5cKe7m2rtHr10S73FYJqgvmWntZzP5z6aOK11OIguSvl34Tn0oA5o9RYe7Nul1ynIAU4+vdSXlvpC0lqGh/+TeRWsvJAjI3sQ5FoKUPSA0Xy/xLvxvW7VY7DieQXS2tp01Qrj/ndruwWSuli4q9pc71QQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688127645; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=6LhIr6V17BrdC653wm2u6g1ZGMjqgmuF6Gf290y9Mik=; b=htfyOO+Tg6ZDjzP4O23dkxu4Y2pLn/9npK0Y5pvRUVlKGgIeugjje7yMHjoeL3dyvKmB5NnD79YXpHrtqHjefP7pEmefnkEZWgJyUQ2FAftPondNUhf9aTrmoELXgY+ycZTs6Yi/Ole0m5gYbbZOaaPTof7AeAoGMNRko3i0cY4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=linux.beauty; spf=pass smtp.mailfrom=me@linux.beauty; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1688127645; s=zmail; d=linux.beauty; i=me@linux.beauty; h=Date:Date:From:From:To:To:Message-ID:In-Reply-To:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=6LhIr6V17BrdC653wm2u6g1ZGMjqgmuF6Gf290y9Mik=; b=LOmNU0Fs53LMzNr2s0M3AfsVLMlnYVstdIi8idH4DbWSjuampAXE4MZq2PiFJMrC ATu31HqUwn/PQhhi02rhd0zNgxDhLKnEsGlOa1YwoW/a191EzAkF3ju0DuAlCc96UKl KdIN1Mii9hvpmiTgh1hoxP9s3oFHjg7AuNVZPnYI= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1688127644347812.1873140766394; Fri, 30 Jun 2023 05:20:44 -0700 (PDT) Date: Fri, 30 Jun 2023 20:20:44 +0800 From: Li Chen To: "linux-kernel" , "linux-acpi" , "Len Brown" , "Rafael J. Wysocki" Message-ID: <1890c3fa24c.d101fdf01298845.3731868257024939195@linux.beauty> In-Reply-To: Subject: [PATCH] ACPI: resource: Add IRQ override for MECHREV Jiaolong17KS MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a regression introduced by commit 9946e39fe8d0 ("ACPI: resource: skip IRQ override on AMD Zen platforms") on MECHREV Jiaolong17KS, which causes the built-in keyboard to not work. This restores the functionality by adding an IRQ override. I have personally tested this on the 17" model but I'm not sure if this issue is present on the 16 model. Fixes: 9946e39fe8d0 ("ACPI: resource: skip IRQ override on AMD Zen platforms") Signed-off-by: Li Chen --- drivers/acpi/resource.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 0800a9d77558..5b00ee90388a 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -527,6 +527,17 @@ static const struct dmi_system_id lg_laptop[] = { { } }; +static const struct dmi_system_id mechrev_laptop[] = { + { + .ident = "Jiaolong17KS Series GM7XG0M", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "MECHREVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "Jiaolong17KS Series GM7XG0M"), + }, + }, + { } +}; + struct irq_override_cmp { const struct dmi_system_id *system; unsigned char irq; @@ -544,6 +555,7 @@ static const struct irq_override_cmp override_table[] = { { tongfang_gm_rg, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1, true }, { maingear_laptop, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1, true }, { lg_laptop, 1, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW, 0, false }, + { mechrev_laptop, 1, ACPI_EDGE_SENSITIVE, ACPI_ACTIVE_LOW, 1, true }, }; static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity, -- 2.41.0