From patchwork Thu Sep 14 11:19:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 140793 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1393853vqi; Fri, 15 Sep 2023 17:08:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgm3YUtj+NQbXYk94UvG9vC+Oj3dd2m7HnG2aVIf4IN1iUyaVNDL3gbEA1a5sLOeuSuPut X-Received: by 2002:a05:6358:3381:b0:141:d2d:6d8f with SMTP id i1-20020a056358338100b001410d2d6d8fmr3643500rwd.17.1694822916043; Fri, 15 Sep 2023 17:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694822915; cv=none; d=google.com; s=arc-20160816; b=pIabXVjqQ7GI6s4UJJqh8lL7oiomvaHAexePsvtmuunfpuS445vu4SqS0ics5xb3K2 ib1T4sVGHoWUylXGLoIrStiarNZdyYUqknMsAOExQkiLrGp6D6650Sh4q5VdJvl8L8v2 LvS57lbS/EGiuhc7HW01kvJ/otS+zTanSYu2tLDJt4fHzdGEGqWGfmWxCGisxKi0qnLm JndvobiW8+KtlJY3voDe0VVZDhKGRRFpE+gGwaSkxI9b5LycHaG6b9r5Y6H0meMDAjAx 99BGXMhLRq5qyfYpDgrnbWvHGvDtG/jGjneNRWV6crxqtj1FBw7MxDSUEwFdko9SioGZ t5kA== 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=I4AQYXVW3A30PqnsD+M8aOCxVdHOXHi6IQ/sQ09Z4ts=; fh=KrP+/74odDtEkJqV7IWHjdp15qIVKzbMoC9VlzzH3aU=; b=ZX8f9xLcuuic4dmxAOoSSz2/+R/h6efKFAysHuGUMsm/X+zJebcOVonzf0ht9n2Irz 4Vz2X3iRa9XsZPXTPrXFmSaC7TgfR7YPDshc6QrUPMv8l+QCqNzqIrj9PyZPLJWZ6fz9 bfzRXmuxw93iRe/ICqvmdSxVz8a4Sj74UjeiB0bdcibbOd+TdFcJNFT20ghg2jkFiJ52 QXo99cc2KaFs/Dgm0Yqu5JiPehAAflO/QnfKMaFizeIHNA91TUicQMfSm2rQwQhJIaRn RB8NPXCJH9RTV3BN4nxT9KNGb2/Xab6Tg9ncd4yYv6nhNyB36CEqsN8Y+voYiNDh8qXO Q68Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SqYtQeHz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j191-20020a6380c8000000b005694ceaf704si3988303pgd.522.2023.09.15.17.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 17:08:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SqYtQeHz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 61E9E85BF2DF; Thu, 14 Sep 2023 04:19:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237419AbjINLTz (ORCPT + 35 others); Thu, 14 Sep 2023 07:19:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237715AbjINLTp (ORCPT ); Thu, 14 Sep 2023 07:19:45 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A02701FD6 for ; Thu, 14 Sep 2023 04:19:40 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2bcb89b476bso13190581fa.1 for ; Thu, 14 Sep 2023 04:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694690379; x=1695295179; 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=I4AQYXVW3A30PqnsD+M8aOCxVdHOXHi6IQ/sQ09Z4ts=; b=SqYtQeHzlacr2wpiqn440sVP1PVzzsY4bkjJHouszGG/BR5JhH4zngeUCZq56VjSU4 TjvK2KloOmpvNhfx1w02TBpE+8/5XJC2P+/2/v1QPHqfyRbZetz5KY07R81oECuqqZqP fNP5yZM1Kwj+U0F8x+TwFC8L3kq5/502DPtvo247+mBHRf3r4mI9EnKwUAzJLS3QG8X3 fyAYkoCS//w/TaQSSPD4Z+b0t/vFFRTz2Lb4FhkPjU1SsWEFy5bVhOhzV25tIt0J8By4 uMtvSRisJH/6DJHt7G5bMPGumVGkrhNvJsfCcGMrZt2Tzsi3PoOBwpm0ECxsu0eicED+ 6XKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694690379; x=1695295179; 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=I4AQYXVW3A30PqnsD+M8aOCxVdHOXHi6IQ/sQ09Z4ts=; b=AUQW78UNsq4rlWs0HzXSDqAZQtc5hwi245ttN7W+7HnhivbfTh/KFdftcFYc42zW6D 4XGt5HIUhARN/mcuM+6vbNu0qE97gWGVq0wz5B/y1pS85P4GYnmlXlw0vIrfGgQ/Jw8P 3bE5cobCfY+lMcMea/bFGyRXSUw8dKNSSJPdbCDyWCxnyteEiPGoo3+So7dGKbkn6F1Q gXg/l9UTpvICki0KACjLLf5h+SB0eA0j51WTlRNRT34d6YYEFDA3lw5iuBb6JKsYZYCy bK702tqRn+TpBLhQgVbvilhj88gQA3mIcYfZOxYiSUPjLbxRE596O6Vu9Go4/xQS1bZT Zf0g== X-Gm-Message-State: AOJu0YwPgA1JpsSNjuJ0Vs1MkC6hGfAPDyuDyd6cf8LrLI4JtmYUL+bD rco7PcGpg1riaPP9QJosiJKZYQ== X-Received: by 2002:a2e:9154:0:b0:2bc:efa4:2c32 with SMTP id q20-20020a2e9154000000b002bcefa42c32mr4690301ljg.37.1694690378945; Thu, 14 Sep 2023 04:19:38 -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 y15-20020a2e978f000000b002bce38190a3sm237679lji.34.2023.09.14.04.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 04:19:38 -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, Michal Simek Subject: [PATCH 17/17] pmdomain: xilinx: Move Kconfig option to the pmdomain subsystem Date: Thu, 14 Sep 2023 13:19:36 +0200 Message-Id: <20230914111936.586824-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 04:19:58 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777150633593923618 X-GMAIL-MSGID: 1777150633593923618 The Kconfig option belongs closer to the corresponding implementation, hence let's move it from the soc subsystem to the pmdomain subsystem. Cc: Michal Simek Signed-off-by: Ulf Hansson --- drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/xilinx/Kconfig | 10 ++++++++++ drivers/soc/xilinx/Kconfig | 9 --------- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 drivers/pmdomain/xilinx/Kconfig diff --git a/drivers/pmdomain/Kconfig b/drivers/pmdomain/Kconfig index 785d177b0ad7..dca0899cd210 100644 --- a/drivers/pmdomain/Kconfig +++ b/drivers/pmdomain/Kconfig @@ -16,5 +16,6 @@ source "drivers/pmdomain/starfive/Kconfig" source "drivers/pmdomain/sunxi/Kconfig" source "drivers/pmdomain/tegra/Kconfig" source "drivers/pmdomain/ti/Kconfig" +source "drivers/pmdomain/xilinx/Kconfig" endmenu diff --git a/drivers/pmdomain/xilinx/Kconfig b/drivers/pmdomain/xilinx/Kconfig new file mode 100644 index 000000000000..5242753d848a --- /dev/null +++ b/drivers/pmdomain/xilinx/Kconfig @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0 + +config ZYNQMP_PM_DOMAINS + bool "Enable Zynq MPSoC generic PM domains" + default y + depends on PM && ZYNQMP_FIRMWARE + select PM_GENERIC_DOMAINS + help + Say yes to enable device power management through PM domains + If in doubt, say N. diff --git a/drivers/soc/xilinx/Kconfig b/drivers/soc/xilinx/Kconfig index 8a755a5c8836..49d69d6e18fe 100644 --- a/drivers/soc/xilinx/Kconfig +++ b/drivers/soc/xilinx/Kconfig @@ -16,15 +16,6 @@ config ZYNQMP_POWER If in doubt, say N. -config ZYNQMP_PM_DOMAINS - bool "Enable Zynq MPSoC generic PM domains" - default y - depends on PM && ZYNQMP_FIRMWARE - select PM_GENERIC_DOMAINS - help - Say yes to enable device power management through PM domains - If in doubt, say N. - config XLNX_EVENT_MANAGER bool "Enable Xilinx Event Management Driver" depends on ZYNQMP_FIRMWARE