From patchwork Fri Jan 27 09:39:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 49139 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp746030wrn; Fri, 27 Jan 2023 01:51:52 -0800 (PST) X-Google-Smtp-Source: AK7set8Q+5eYMcfMZ3PTw7LXaoXTVqEvCFhraCqvueuTizPUC5MBzQQppxPZou1O7BOd33NLHXm/ X-Received: by 2002:a17:906:26d8:b0:878:47d2:6f3d with SMTP id u24-20020a17090626d800b0087847d26f3dmr6812586ejc.48.1674813111869; Fri, 27 Jan 2023 01:51:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674813111; cv=none; d=google.com; s=arc-20160816; b=g9OLXyU3cb3S4rNQhTAvE3tNKDsmpDQ5fYNntoHXx+DwsVzBt5ZNMOjoiTq4mcBplJ m6nVbbpwqU8wLZalZCx1YnV0aSUDQx2xgTbwVy2lRLIYuB4mzaSWGNAknxS2F7thWcE0 XcO2blHBwnHvhsNvhFIE+OPDgWQGstLGXMWgf176zjWctjIFdU1ZRhi261NFl4xOaV3M aijDoZdePEcR/A51L/UFVn3v0hJvbaJFNooGZJGWonaDYCPm9ZXHPLc8J9wVEyTlXbpR RiGEPxFap1K7bbHfhGNNsnG3y7Y6BSWWvSOqf8HzKw8ThZkXyZKkJyXvYzV/0d2e0GD4 9Vwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7VCwusrZJOS2Pk5f1rVpaLol49sUVMlsg2iGGpBYAUU=; b=ABuWRT9Rp+RB6icE3FTrL1/ViRnkD8ZkMHhEA9r5/oEaiwMaRpMhR10DD9nCrlmEij oRLdRpAZCZ1p8uKQiZjatxcpDvgiTucrEHWNQG7hnRqKtbwJmO/HgMhlnwtUQ82na9xo SU2uf+BmdD3VKJnspLcZ3L2l3xvnfs2wxCUUk+8qjw8ahtQXLM/aT8rHCO4Mrjo1/KXN F9V4GtrXNXaq/j6VyiVLYJc9Me6xnpQ9oUkDblVmQmbRXAs+kYDw1/RHVByfB9qUCbj4 AnMw6Dpe/pW/hLia2Mnu/mT9vpiCfPM03jmHdTWGp9m6n/Bp0giXb5vPBODlG3vPm9NY WfxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E7L9tdhf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ma25-20020a1709079f1900b008784df7d93bsi3943864ejc.925.2023.01.27.01.51.27; Fri, 27 Jan 2023 01:51:51 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=E7L9tdhf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232489AbjA0JkB (ORCPT + 99 others); Fri, 27 Jan 2023 04:40:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233214AbjA0Jj4 (ORCPT ); Fri, 27 Jan 2023 04:39:56 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 719F3198; Fri, 27 Jan 2023 01:39:55 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 05BB2619EE; Fri, 27 Jan 2023 09:39:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8303DC433D2; Fri, 27 Jan 2023 09:39:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674812394; bh=yz0DdgDxsvq7DxxUo6FE0Nv4JA5iq76tv3BvMGT3jP4=; h=From:To:Cc:Subject:Date:From; b=E7L9tdhfWI0FO5k6f7LNfeE00oHnJPOZkwXAF0V14ep1wzYOvTOAOm8SgorEfI7vW sp9Iv8+xX5G4TvmBV5PeA1Uo8N8CxpsagmY75hYz8mtEIylOyNW7wLgcZyADqmx3Lj j9b/tdjsaqHSs6KNaUclPUuViFujFEdRm/lp33TpKhSyMcafF812D3HdKo7nJNS1c1 J9FSK4tW+HHd/69b29TIvLqwf3VHw07LnGq9ur6w+QpWT0KpygSeFgPc/IDTv3i3nd t9Dr/UPN8EK1jkF0Jorib0jHjPeIeFBa0nacQi7TwekTnVxk2OdENmMY9gAHXRf77S L6M7pF488j/XQ== From: Arnd Bergmann To: Hans de Goede , Mark Gross , Mario Limonciello Cc: Arnd Bergmann , Shyam Sundar S K , Naveen Krishna Chatradhi , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86/amd: pmc: add CONFIG_SERIO dependency Date: Fri, 27 Jan 2023 10:39:44 +0100 Message-Id: <20230127093950.2368575-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756168833995554883?= X-GMAIL-MSGID: =?utf-8?q?1756168833995554883?= From: Arnd Bergmann Using the serio subsystem now requires the code to be reachable: x86_64-linux-ld: drivers/platform/x86/amd/pmc.o: in function `amd_pmc_suspend_handler': pmc.c:(.text+0x86c): undefined reference to `serio_bus' Add the usual dependency: as other users of serio use 'select' rather than 'depends on', use the same here. Fixes: 8e60615e8932 ("platform/x86/amd: pmc: Disable IRQ1 wakeup for RN/CZN") Signed-off-by: Arnd Bergmann --- drivers/platform/x86/amd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/amd/Kconfig b/drivers/platform/x86/amd/Kconfig index a825af8126c8..2ce8cb2170df 100644 --- a/drivers/platform/x86/amd/Kconfig +++ b/drivers/platform/x86/amd/Kconfig @@ -8,6 +8,7 @@ source "drivers/platform/x86/amd/pmf/Kconfig" config AMD_PMC tristate "AMD SoC PMC driver" depends on ACPI && PCI && RTC_CLASS + select SERIO help The driver provides support for AMD Power Management Controller primarily responsible for S2Idle transactions that are driven from