From patchwork Fri Sep 15 09:20:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 13386693 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 8B257EE644B for ; Fri, 15 Sep 2023 09:22:22 +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=H+qA65Oel7whcI9I5Y6w4ne0V0mLl61gGqVSAXTjkgQ=; b=Y5A+bDPJiKu1T8 ODAelh0bwT2vV9Rcg7xuawHJPsXbTpSB3HPzB+ImYTlV9wuhl2JtOqvLgiskCrOd76wA/9/2ibvv6 8Cpaso0XSbgoXG26WBVrBD3/X7Jq1Bloju7dGv8pRF3MfsZCszStjIw5TuLaw/YMW/bMfBhUuY+Vu rf+Y7bv5/jlptZqtSPMcW9P9P/+FrtFHDlCuuSEga7ll1YaXEmvkZLWb1TztxbJqWDNwrSA/TUPTm Xe0S4igF9euiIx+JgFDbOMkLcR2ni5MsyGbo5d3+OS7X0xc11gMS+fsfmq0sBkFya/wHqE/1w77Nm Ko0ICtJ+Utgb/mxDZW5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qh51N-00AGFU-34; Fri, 15 Sep 2023 09:21:53 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qh513-00AFuW-37 for linux-arm-kernel@lists.infradead.org; Fri, 15 Sep 2023 09:21:35 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2bfc1d8f2d2so23454491fa.0 for ; Fri, 15 Sep 2023 02:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694769692; x=1695374492; 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=Q0LzjuzekaO+LUgw0Z4oAojZpLU0XF+vjTLwwFv3zjw=; b=TYtXpAcUmwHdlhZ+2g/nU0kLTIXz4X544CPm9yxLgojrSp1Xp2PyazhIwQE6Sbb4yG xK7QvfYEGF7jXDdNefzV8MaHEHZAgZRhsHTbLESnSCP/WLnjuzSGv0sUaDGJTBorpvax oPI2Ktf7fIaRSJjefp58c9XAX+z6Tb/U4oZv0kjcLyM9KtlfutrfsymesRqGrzi+Uwre ZYgCWmINyFQIL69UgpFFZ9QxNhmqdbqWGmMB1py7skKpbFpSBwr7x/XNGIQ2QMhaoGAm AI5dVcvzixLk2IVxSf9Vg//DZWS6F6ejNErDlk+BJYG+xt5MPYZiy6468fyb3RjOd728 Rqmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694769692; x=1695374492; 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=Q0LzjuzekaO+LUgw0Z4oAojZpLU0XF+vjTLwwFv3zjw=; b=tQ6DulV9tgCirXKkIL8z6dT1MFMe/zrfVi3OHpdvinYNZCsSnaEESYtWfMCFqOYKLp Ey8ufT5HCiGw8Hkf6pGmR41PlCzNs21KuCMOYnEVSmpYd7EgeoEz3sejv4WIDmTh0n5J Kx84l5t4avOkuQNUlQ89k0Rifwiu81CxU7ibmObCaPrWjHUO1hyV8dCNkpOQdd1+lt8H S0tiZDSWXBW+C5iK1EzgDC2hGgJUBW96txpu1MNOUnY1ERw6a+q8avqe8JGWRzihCBw9 lPFaZds4EQtP/wbEuLXwX3llQ39mnoK8alU/OSvLWBm/Aoue89c7i8u1pmlCujVik9sa 98eg== X-Gm-Message-State: AOJu0YzHM2w0RLc+RKKTB9Je/k6tnLD7/v/ciIiVK6xlFQkJwBRzZU8y R0HmV9H3Yjd09/tf+EKcCkMzNsWc6TWqZ9JJiqWjtQ== X-Google-Smtp-Source: AGHT+IGlhxclDokFJJoDCsB2E+IRV6YNT97EznA5CVX9FoIK3dQoYlmtjn1XPSwMiiENDAOdee/EAQ== X-Received: by 2002:a2e:a17a:0:b0:2bb:c19b:710c with SMTP id u26-20020a2ea17a000000b002bbc19b710cmr415223ljl.5.1694769692670; Fri, 15 Sep 2023 02:21:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:21:31 -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 v2 17/17] pmdomain: xilinx: Move Kconfig option to the pmdomain subsystem Date: Fri, 15 Sep 2023 11:20:03 +0200 Message-Id: <20230915092003.658361-18-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_022134_048257_1BE0D0B3 X-CRM114-Status: GOOD ( 14.25 ) 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: 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 33bfec9c4f7a..c98c5bf75a14 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