From patchwork Fri Sep 15 09:19:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386679 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8AE30EE6454 for ; Fri, 15 Sep 2023 09:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=S5rekeb9ObJgV7daEsgWZ4/I6wruT4jFxWV4k/gvcOU=; b=ulx18ubF7pf/sd p29Ncd4HP6Kbz0e1T2MpY9JbWsA3TfdeQ2NxXbtN31zgLnbOLQna94So7l0kpZuc6himZdsbhEb5F QqN1B+n2xMM3JEl1DdPblDNC2FiOdcYHldw89BXmIp/AOjnGq01Asq14qhbQtqchgcE4bAvyLfrT/ Ru63Q7M5TmxyG2z8qpKFvebWaVceRCM3Z2CtUTW1TKofQlmc2V0aGZFgvUCY4GCEwFLiq09iRLfM7 ZGzAvDenqzUWpL7seqsq+0yM46BKd+JDHzaCQwvXSe3jZCOa7hY5Nt+ffeuFsKW2xotF0c06IvxR9 cqC2QlFgUholpuy7x7Ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh50w-00AFn8-24; Fri, 15 Sep 2023 09:21:26 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh50r-00AFfb-0D for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:22 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so29725701fa.3 for ; Fri, 15 Sep 2023 02:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769678; x=1695374478; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pIvhidofVsmyJzzhpGisC+BAHcAy8W3Roljgbbr6x7o=; b=Ae7WTj58HYiON3/Sg/CMkKXkfHaTC5rR1rBd3qc+BE1dTZ6AOfgyJbLDXRuFkrJ/Ja E64w8EZtwvR+oEzE2Touap5n83eS7Fb0Gf/kcBSylHs5bPMCPjT3nepLIvZI5B/AY9tp sDqY1N215rNtaFzoCjfeIKJ7dFB5H17WA9gkhRhMqnh48IxCP5j89/rn1gEfNFNNaf+D WSJaHzKUjVJLKBxoqi+9+uuQTVoWplfYFT3Dq+qsScepC2ab/TUI2dnClF08PUtCFgr9 CYrPFE50IBS6a1ZboabU2BUWpa+gx4SgKE/279aIpJgOY1E3F7sDUNlAt5nYtuXit4Tp hV4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769678; x=1695374478; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pIvhidofVsmyJzzhpGisC+BAHcAy8W3Roljgbbr6x7o=; b=VU27D56urGhxKrJ7padRbnlQM2qMPLSd7I2q0yAUa2W6R3sTIBSEiroAfik4JntzFA nwkk4+mXHM3MP8ro5otVlr8CJEg/IlK2OpyxZ9cWBeIGNP4sRJzXDda5WXaES3cOqbv6 ijuNCUYXFuCFxbYsewoTTteA4zlkqCz1jzrv6yzkXZAYn/U4dyxAKLM+mc2eHuLA6xK8 Y1+wvKkaHKnflDESanPZkY8S9kRHlZI31vQe6N4gblklPqmu7ewLkWfMzZp2W4yvw/nG 42aE8/GTzj4laZYb914Sw7Z67z80nbRTtnknGv5BamTARChwnmBqec6y5FJfmK8d9rt5 K/yA== X-Gm-Message-State: AOJu0YxNhF8MShLzG89VafdYR/KEznc1xCgYUmR8HYJDh3z5lQ/JYE6B FEF9leX/BDfjOH8I+JXY+VfqzQ== X-Google-Smtp-Source: AGHT+IHAQ1iI+KB4DwlX9IrPYGMVQNjUB4liAC9r/LpWZWzZwOnLogKuDYvJOCgw36npmE6DOTZBbQ== X-Received: by 2002:a2e:7010:0:b0:2bc:c750:d9be with SMTP id l16-20020a2e7010000000b002bcc750d9bemr1141692ljc.29.1694769678814; Fri, 15 Sep 2023 02:21:18 -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 p8-20020a2e7408000000b002b9ec22d9fasm639376ljc.29.2023.09.15.02.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:18 -0700 (PDT) From: Ulf Hansson To: Arnd Bergmann , Olof Johansson Cc: Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hector Martin , Sven Peter , Alyssa Rosenzweig , asahi@lists.linux.dev Subject: [PATCH v2 04/17] pmdomain: apple: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:19:50 +0200 Message-Id: <20230915092003.658361-5-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230915092003.658361-1-ulf.hansson@linaro.org> References: <20230915092003.658361-1-ulf.hansson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_022121_106484_31C327FB X-CRM114-Status: GOOD ( 14.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Cc: Sven Peter Cc: Alyssa Rosenzweig Cc: Signed-off-by: Ulf Hansson Reviewed-by: Eric Curtin Reviewed-by: Neal Gompa --- 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 03c8991ad0fd..482d9e970e14 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -3,5 +3,6 @@ menu "PM Domains" 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