Message ID | 20230914111712.586522-1-ulf.hansson@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp355986vqi; Thu, 14 Sep 2023 06:40:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHH4fkDIjHV7G0s+3TlgPfwJzslCLesMvoIpWgr+l7WZRJoBa9ClQnL7NeP26k/f5cEXImn X-Received: by 2002:a17:90b:17cf:b0:274:4fb:360a with SMTP id me15-20020a17090b17cf00b0027404fb360amr5139921pjb.16.1694698805416; Thu, 14 Sep 2023 06:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694698805; cv=none; d=google.com; s=arc-20160816; b=XqaWGZbZ++FqHF4ZN5ZZv+t3BO7PLqLQmIgvhDH8g2R74ivpeuYlh6WvpNwa+4yANm OuItTMLfAhLykbJfV1bJ9CxMtlMWNl4fw1K5qB0kGhKcwYjAm/N4T/1wRhqvPrKC6kgn PqiJ2mOt2XLTiNbgvkanssLe+4pKIlJHv9AiiIMaEsPzeDQo89DU9JUDxbRpRqOvvqOY pyZDbPsEdv9EsBdUB+xPMB3IfU2NMs9E3fL0AdNuwVoexDIxaGGBKyx7vSIBRG7gKeAp Vsuur7dJlhcBy3Ihfmzzh1EXqhUQl+TTs4SQE2Dz2Hc8pfdPTvTfJ3GmBO5NLkRWLOxP xaZw== 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=i01ZwhFKlrFFwp2TeTntBDNdPU8fSl314WlanHljcec=; fh=HSXLPOmLkxZbVvDwm6G/OfvFr+0Elyrpvi5bi2PnsNo=; b=QWKL8SoL3oIFRqvYvoHloSIfhXkmRVrZzTiKJ8zSdWyPMAiphEDN1hY9DmDLKx3VR8 xmrvKq5+sNYlgNX3cuVTKEk9/GWw5+ja3F3kWOGCYPTO2Rz8M5QrsppP3rvYdGs+B39K ByTlo0dQOL6y4RxfbrPtsc4ckluF2/NMwIcXdZY+TD2jHxm2mbmNcxvQ390SFtS1GAkH 6ltjlcEHgu58B+Q+CBuJkRDjQdDMVNyneklrrPIe4ANugyI9d4oJvBaXIy/StuAqIUwB VnZjcpPelgJTpOJpFZc7jUT4QuSTidVH1BCo9rWOy/UjsgQTLT1qVDIY7/2Qb2PouT+9 DMTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=opMpVPzs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id pg14-20020a17090b1e0e00b00263e1d9c4f2si1920201pjb.26.2023.09.14.06.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:40:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=opMpVPzs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B371282B9FB9; Thu, 14 Sep 2023 04:17:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232865AbjINLRY (ORCPT <rfc822;chrisfriedt@gmail.com> + 35 others); Thu, 14 Sep 2023 07:17:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233502AbjINLRW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 14 Sep 2023 07:17:22 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C92591A5 for <linux-kernel@vger.kernel.org>; Thu, 14 Sep 2023 04:17:17 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5008d16cc36so1431214e87.2 for <linux-kernel@vger.kernel.org>; Thu, 14 Sep 2023 04:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690236; x=1695295036; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=i01ZwhFKlrFFwp2TeTntBDNdPU8fSl314WlanHljcec=; b=opMpVPzsFDWclZZqyZYNinrucsgVFWEDpzLsA/VLI+R4CQ/lypGcn87+7dNbWoa6OY PmQScH1I3vth8ih6qJqy6+TWRTV9EYiXrzAoEDdsQKZ/cUKot3EaOWZihv9gbmaL88GI jrxOPOs/aGrEr1J8XBY9/SpIDwgDETv7CLMBylhCRzk1YDKidjOn2s1l6vSjvnrV6Hlk 7NeLePvxvM3NVZ4VBVl+y7ljlj/QfjJdlKvIzzgxEKinJE9DrYqYZiigAh338mvwlIEC HXXw2iC8yaHlXOigfoFf/HhawxtGA8Iimpg/mOd/GVvY95dZjt5kfVYAflOzxfar8mG/ C2Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690236; x=1695295036; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i01ZwhFKlrFFwp2TeTntBDNdPU8fSl314WlanHljcec=; b=AAMBf/llYZYbZHbtOLe2yHDxNyW+V/5BEZ1lNFigXU6XGCK7V43+s0/gvcCR5r7SeF a3ky/EByl6AkxJhviRY7+RYzkGq7+jqOqTdXPE/TyPPnSOLlT39GqXCvmUcuksmT8a9s +ibhS4p0C4k4QwVRR+T1MzkTHx739KJsc35Hesb67f654D/365XaLOkQKpTBtkGgKsGf VnYnPnhbnvuDryQHfw0xjPokexvZaDa5hIGGX7+SKiTLbz/BTvX4Z8o42Xd2CaoljpA6 +8lcjcQoUg4wbKsBVZp3Xc/ScGUtMUmcKiksuGf01PfE9VQj3Yut/xEmaGOuBILL9/TG hblA== X-Gm-Message-State: AOJu0Ywc9uu4085J9kZsTWx9MtzVuV47j0kHH100b11qCyPqzNOQey87 kWyMoo5A/9za5ErXsZ8lckaUlg== X-Received: by 2002:a05:6512:312c:b0:4fe:7dcc:3dc1 with SMTP id p12-20020a056512312c00b004fe7dcc3dc1mr4103999lfd.44.1694690236028; Thu, 14 Sep 2023 04:17:16 -0700 (PDT) Received: from uffe-tuxpro14.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id a28-20020ac2521c000000b005008cd93961sm233024lfl.192.2023.09.14.04.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:17:15 -0700 (PDT) From: Ulf Hansson <ulf.hansson@linaro.org> To: Arnd Bergmann <arnd@arndb.de>, Olof Johansson <olof@lixom.net> Cc: Ulf Hansson <ulf.hansson@linaro.org>, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hector Martin <marcan@marcan.st>, Sven Peter <sven@svenpeter.dev>, Alyssa Rosenzweig <alyssa@rosenzweig.io>, asahi@lists.linux.dev Subject: [PATCH 04/17] pmdomain: apple: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:17:12 +0200 Message-Id: <20230914111712.586522-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 04:17:38 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777020494921877905 X-GMAIL-MSGID: 1777020494921877905 |
Series |
[01/17] pmdomain: Prepare to move Kconfig files into the pmdomain subsystem
|
|
Commit Message
Ulf Hansson
Sept. 14, 2023, 11:17 a.m. UTC
The Kconfig option belongs closer to the corresponding implementation,
hence let's move it from the soc subsystem to the pmdomain subsystem.
Cc: Hector Martin <marcan@marcan.st>
Cc: Sven Peter <sven@svenpeter.dev>
Cc: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Cc: <asahi@lists.linux.dev>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
drivers/pmdomain/Kconfig | 1 +
drivers/pmdomain/apple/Kconfig | 18 ++++++++++++++++++
drivers/soc/apple/Kconfig | 13 -------------
3 files changed, 19 insertions(+), 13 deletions(-)
create mode 100644 drivers/pmdomain/apple/Kconfig
Comments
On Thu, 14 Sept 2023 at 12:24, Ulf Hansson <ulf.hansson@linaro.org> wrote: > > The Kconfig option belongs closer to the corresponding implementation, > hence let's move it from the soc subsystem to the pmdomain subsystem. > > Cc: Hector Martin <marcan@marcan.st> > Cc: Sven Peter <sven@svenpeter.dev> > Cc: Alyssa Rosenzweig <alyssa@rosenzweig.io> > Cc: <asahi@lists.linux.dev> > Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Makes sense, since the C code and Makefile is there now. Reviewed-by: Eric Curtin <ecurtin@redhat.com> Is mise le meas/Regards, Eric Curtin > --- > drivers/pmdomain/Kconfig | 1 + > drivers/pmdomain/apple/Kconfig | 18 ++++++++++++++++++ > drivers/soc/apple/Kconfig | 13 ------------- > 3 files changed, 19 insertions(+), 13 deletions(-) > create mode 100644 drivers/pmdomain/apple/Kconfig > > diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig > index 07d2f8165abe..55a9ca191849 100644 > --- a/drivers/pmdomain/Kconfig > +++ b/drivers/pmdomain/Kconfig > @@ -3,5 +3,6 @@ menu "Power Domains Support" > > source "drivers/pmdomain/actions/Kconfig" > source "drivers/pmdomain/amlogic/Kconfig" > +source "drivers/pmdomain/apple/Kconfig" > > endmenu > diff --git a/drivers/pmdomain/apple/Kconfig b/drivers/pmdomain/apple/Kconfig > new file mode 100644 > index 000000000000..12237cbcfaa9 > --- /dev/null > +++ b/drivers/pmdomain/apple/Kconfig > @@ -0,0 +1,18 @@ > +# SPDX-License-Identifier: GPL-2.0-only > + > +if ARCH_APPLE || COMPILE_TEST > + > +config APPLE_PMGR_PWRSTATE > + bool "Apple SoC PMGR power state control" > + depends on PM > + select REGMAP > + select MFD_SYSCON > + select PM_GENERIC_DOMAINS > + select RESET_CONTROLLER > + default ARCH_APPLE > + help > + The PMGR block in Apple SoCs provides high-level power state > + controls for SoC devices. This driver manages them through the > + generic power domain framework, and also provides reset support. > + > +endif > diff --git a/drivers/soc/apple/Kconfig b/drivers/soc/apple/Kconfig > index a1596fefacff..eff486a77337 100644 > --- a/drivers/soc/apple/Kconfig > +++ b/drivers/soc/apple/Kconfig > @@ -4,19 +4,6 @@ if ARCH_APPLE || COMPILE_TEST > > menu "Apple SoC drivers" > > -config APPLE_PMGR_PWRSTATE > - bool "Apple SoC PMGR power state control" > - depends on PM > - select REGMAP > - select MFD_SYSCON > - select PM_GENERIC_DOMAINS > - select RESET_CONTROLLER > - default ARCH_APPLE > - help > - The PMGR block in Apple SoCs provides high-level power state > - controls for SoC devices. This driver manages them through the > - generic power domain framework, and also provides reset support. > - > config APPLE_RTKIT > tristate "Apple RTKit co-processor IPC protocol" > depends on MAILBOX > -- > 2.34.1 > >
On Thu, Sep 14, 2023 at 7:17 AM Ulf Hansson <ulf.hansson@linaro.org> wrote: > > The Kconfig option belongs closer to the corresponding implementation, > hence let's move it from the soc subsystem to the pmdomain subsystem. > > Cc: Hector Martin <marcan@marcan.st> > Cc: Sven Peter <sven@svenpeter.dev> > Cc: Alyssa Rosenzweig <alyssa@rosenzweig.io> > Cc: <asahi@lists.linux.dev> > Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> > --- > drivers/pmdomain/Kconfig | 1 + > drivers/pmdomain/apple/Kconfig | 18 ++++++++++++++++++ > drivers/soc/apple/Kconfig | 13 ------------- > 3 files changed, 19 insertions(+), 13 deletions(-) > create mode 100644 drivers/pmdomain/apple/Kconfig > > diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig > index 07d2f8165abe..55a9ca191849 100644 > --- a/drivers/pmdomain/Kconfig > +++ b/drivers/pmdomain/Kconfig > @@ -3,5 +3,6 @@ menu "Power Domains Support" > > source "drivers/pmdomain/actions/Kconfig" > source "drivers/pmdomain/amlogic/Kconfig" > +source "drivers/pmdomain/apple/Kconfig" > > endmenu > diff --git a/drivers/pmdomain/apple/Kconfig b/drivers/pmdomain/apple/Kconfig > new file mode 100644 > index 000000000000..12237cbcfaa9 > --- /dev/null > +++ b/drivers/pmdomain/apple/Kconfig > @@ -0,0 +1,18 @@ > +# SPDX-License-Identifier: GPL-2.0-only > + > +if ARCH_APPLE || COMPILE_TEST > + > +config APPLE_PMGR_PWRSTATE > + bool "Apple SoC PMGR power state control" > + depends on PM > + select REGMAP > + select MFD_SYSCON > + select PM_GENERIC_DOMAINS > + select RESET_CONTROLLER > + default ARCH_APPLE > + help > + The PMGR block in Apple SoCs provides high-level power state > + controls for SoC devices. This driver manages them through the > + generic power domain framework, and also provides reset support. > + > +endif > diff --git a/drivers/soc/apple/Kconfig b/drivers/soc/apple/Kconfig > index a1596fefacff..eff486a77337 100644 > --- a/drivers/soc/apple/Kconfig > +++ b/drivers/soc/apple/Kconfig > @@ -4,19 +4,6 @@ if ARCH_APPLE || COMPILE_TEST > > menu "Apple SoC drivers" > > -config APPLE_PMGR_PWRSTATE > - bool "Apple SoC PMGR power state control" > - depends on PM > - select REGMAP > - select MFD_SYSCON > - select PM_GENERIC_DOMAINS > - select RESET_CONTROLLER > - default ARCH_APPLE > - help > - The PMGR block in Apple SoCs provides high-level power state > - controls for SoC devices. This driver manages them through the > - generic power domain framework, and also provides reset support. > - > config APPLE_RTKIT > tristate "Apple RTKit co-processor IPC protocol" > depends on MAILBOX > -- > 2.34.1 > Makes sense to me. Reviewed-by: Neal Gompa <neal@gompa.dev>
diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 07d2f8165abe..55a9ca191849 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -3,5 +3,6 @@ menu "Power Domains Support" source "drivers/pmdomain/actions/Kconfig" source "drivers/pmdomain/amlogic/Kconfig" +source "drivers/pmdomain/apple/Kconfig" endmenu diff --git a/drivers/pmdomain/apple/Kconfig b/drivers/pmdomain/apple/Kconfig new file mode 100644 index 000000000000..12237cbcfaa9 --- /dev/null +++ b/drivers/pmdomain/apple/Kconfig @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0-only + +if ARCH_APPLE || COMPILE_TEST + +config APPLE_PMGR_PWRSTATE + bool "Apple SoC PMGR power state control" + depends on PM + select REGMAP + select MFD_SYSCON + select PM_GENERIC_DOMAINS + select RESET_CONTROLLER + default ARCH_APPLE + help + The PMGR block in Apple SoCs provides high-level power state + controls for SoC devices. This driver manages them through the + generic power domain framework, and also provides reset support. + +endif diff --git a/drivers/soc/apple/Kconfig b/drivers/soc/apple/Kconfig index a1596fefacff..eff486a77337 100644 --- a/drivers/soc/apple/Kconfig +++ b/drivers/soc/apple/Kconfig @@ -4,19 +4,6 @@ if ARCH_APPLE || COMPILE_TEST menu "Apple SoC drivers" -config APPLE_PMGR_PWRSTATE - bool "Apple SoC PMGR power state control" - depends on PM - select REGMAP - select MFD_SYSCON - select PM_GENERIC_DOMAINS - select RESET_CONTROLLER - default ARCH_APPLE - help - The PMGR block in Apple SoCs provides high-level power state - controls for SoC devices. This driver manages them through the - generic power domain framework, and also provides reset support. - config APPLE_RTKIT tristate "Apple RTKit co-processor IPC protocol" depends on MAILBOX