Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4622081rdb; Fri, 15 Sep 2023 07:41:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEFpZV5AzOMTNDWfpTFEVX4seE8IG3kNCHwITZgSi9K8gPpNk2uidckIxkZk7d8sw52US59 X-Received: by 2002:a05:6e02:1a28:b0:34f:6f29:cb81 with SMTP id g8-20020a056e021a2800b0034f6f29cb81mr2537372ile.18.1694788860344; Fri, 15 Sep 2023 07:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694788860; cv=none; d=google.com; s=arc-20160816; b=eCTToI4Nrfb8tC2IhOUCWJPzWGkN1T765ZuJ8Cn5Rwvi8oJ25YGQC5vFK4ROQkMyxh p9au78WVSo699o7UxvZCYpOaiW8UNfNGvBR44bopG0ndzNw9lRAlnfHIeO58fiSDN88g B5MOLj9Y+vnNF+J8jly3tbofDTknfB0cvj4jgM8RMaOttsoo5zwQ1lp+CTgqgOyOHCgi +6ZvGiut4EUoduCIug5kQaU3tUW7DVNIM9evdMlg0qvUUnHFt3NVmHOG3ebykpnvXTkc 3QtIwqkfds/PK6swB4fOB7AJ0UkmNdbYZddCwa4BmNhKLHpZIVYE8XzDFrlZqJntqWky LZEg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pIvhidofVsmyJzzhpGisC+BAHcAy8W3Roljgbbr6x7o=; fh=HSXLPOmLkxZbVvDwm6G/OfvFr+0Elyrpvi5bi2PnsNo=; b=PI+snl4B6aqbEjQV3yBydTOOKd2lcgw7oraoKCkWRJKhPmuZfPYYUosHOot7IcbkYV U2+Zy8fH56KS8JRvQ2Xp7Jl8/PpL/R624a5T1mOFH2iQy+O6i20eOgdyNi9AuuxfGVY/ tvKwsEbKKRECA2/N2MGl2uGPFbgJmTYc3Kxy/1gxf3ryvCPibPTxKu4zRFQNtwmCNlwZ VPiKV1NLlBzVPjcRr+zrMPC3qS/vhtavYaXJYz9tBil1G6AoDB5MBuWMgn2RJ68L55Vd tYRj3m+/9LDvWbZq8t3mIxGOLznbU7f2vezk0X6SPJ15Crl3RV9WOZrH81BUIfozlY+0 Yn/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G88d7+sk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id i63-20020a638742000000b0057787e28694si3274281pge.448.2023.09.15.07.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 07:41:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G88d7+sk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 27B45833E1EC; Fri, 15 Sep 2023 02:21:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233600AbjIOJVj (ORCPT + 99 others); Fri, 15 Sep 2023 05:21:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233504AbjIOJVd (ORCPT ); Fri, 15 Sep 2023 05:21:33 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68AF61FF5 for ; Fri, 15 Sep 2023 02:21:20 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2bceb02fd2bso29937751fa.1 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=vger.kernel.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=G88d7+sk+YMjDXhUPDW6hhIuOTT2jRL/m4mkziCa8dy9rLoHrjZVER6a6MroO6Ud4z 3zAYXGr3T6FjE5a00T4GGKJmL3WAra4WxhIq0sJ0Lapf37ovcCGOEdG+TUx3qV0tmjgF Y1R/tRTh8sUjhB1xP/pRe/W+IM0yxsfQxjheEcPY1EdXOipG/2imrv4KK60DyIHFhukF d1DwN1w2Cei665VpFeaE6wHuKzFMgx/5TtW+HVHUdJfbgWN+xwxaesgZlEj/qMTjMcQl wj8eOuFf76QKt5EKcU+5GOz7/txxstlPpBsCZRH3YlGMBMtLFZ33skdb7SBrPnxpUOER yvRg== 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=RrqwVUDkvgRsJdV31jJHgVAjljxPDD8GOuK6t8pmnegXwkPhq9iOEwnTHP/YgUDgyI lQvWJkGzvFaYustbVsJDpKLCMVYzrV5sSmrvqgH1CJy8rNIIWkg+Fg84lFcj3NIYAoFW UuT9fI8xGatnrhe1Xr6KNtqm2/QtDahpDb/XYmZZTCwjchWsXW0MOCxlYoBw85QudQ6Z VUeong30+rjcsPleqx2L6K6gpnRwBkkfjV3W0Sy6G+YIOtJI6OGzkWYfF63RXZD5rjvX L1J5HCOKqnuvHxQV93XUAlJeT4KpGXz6vYDvl9sQgaZaT5uodPB5cqTjHjwDe+iJDGEH WdFA== X-Gm-Message-State: AOJu0Yzj7dHu4/2jh2FSpzEQ4KCkxJ2Rya6rQAbjwblP/eXiYG3yr4C6 m2587P6rKCzJ1+g8jDAIeQKqxQ== 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 Content-Transfer-Encoding: 8bit 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 morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 15 Sep 2023 02:21:59 -0700 (PDT) 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 --- 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 -- 2.34.1