Message ID | 20230127093950.2368575-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;lekhanya01809@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <arnd@kernel.org> To: Hans de Goede <hdegoede@redhat.com>, Mark Gross <markgross@kernel.org>, Mario Limonciello <mario.limonciello@amd.com> Cc: Arnd Bergmann <arnd@arndb.de>, Shyam Sundar S K <Shyam-sundar.S-k@amd.com>, Naveen Krishna Chatradhi <NaveenKrishna.Chatradhi@amd.com>, 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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> 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?= |
Series |
platform/x86/amd: pmc: add CONFIG_SERIO dependency
|
|
Commit Message
Arnd Bergmann
Jan. 27, 2023, 9:39 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de> --- drivers/platform/x86/amd/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
Hi, On 1/27/23 10:39, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > 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 <arnd@arndb.de> Thanks Arnd, I'll include this in my next fixes pull-req to Linus. Regards, Hans > --- > 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
Hi, On 1/27/23 10:39, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > 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 <arnd@arndb.de> Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > 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
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