From patchwork Thu Feb 9 17:23:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 13134889 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 F271AC636D6 for ; Thu, 9 Feb 2023 17:25:02 +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: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:In-Reply-To:References: List-Owner; bh=crVKUP3TJHhke+9xFTs+MnlAt6PtLq+rem47JocyBek=; b=wg4gQmxmCUtGs7 ABLz261b8roHm5qQ/aQ9dBznKi00O65s4VagHYbhd0C959jQcjs1U07CGDSbZ7Tpll+s0SZv3bHVp v+5a8NtyPTvR3gtvMpMBDt0MwLmRe6fVl6C1UrUihtPNIZf0jl7AYAU0nGvjL/ijuh5upy06LFQTd QdukaFFpqGCZ2NZ/9Xo0gwk6GUkln/KfrkuBmp3NWekUVBrCpz32rCsTXAGnoF47Uz55VNJKTGdyX ywM294t+Sj3jW9CSvnls3NmsA0wk2/pvDhhDt0jM2mF0gkQLDMyqbPjXRRAb717YxIN2jNW0HnnBg /bguJpjUbdzRTUTkhhdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQAeR-002Z7Y-7W; Thu, 09 Feb 2023 17:24:03 +0000 Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQAeN-002Z6u-Vp; Thu, 09 Feb 2023 17:24:00 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Arnd Bergmann , Geert Uytterhoeven Subject: [PATCH] soc: sunxi: SUN20I_PPU should depend on PM Date: Thu, 9 Feb 2023 09:23:59 -0800 Message-Id: <20230209172359.5813-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 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 An $ARCH or a platform should select PM. Single device drivers should only depend on PM, not select it. Having SUN20I_PPU depend on PM removes a kconfig warning: WARNING: unmet direct dependencies detected for PM Depends on [n]: !MMU [=y] Selected by [y]: - SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y]) Fixes: 0ad2185dcb5e ("soc: sunxi: select CONFIG_PM") Signed-off-by: Randy Dunlap Cc: Chen-Yu Tsai Cc: Jernej Skrabec Cc: Samuel Holland Cc: linux-arm-kernel@lists.infradead.org Cc: linux-sunxi@lists.linux.dev Cc: Arnd Bergmann Cc: Geert Uytterhoeven --- drivers/soc/sunxi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/drivers/soc/sunxi/Kconfig b/drivers/soc/sunxi/Kconfig --- a/drivers/soc/sunxi/Kconfig +++ b/drivers/soc/sunxi/Kconfig @@ -23,7 +23,7 @@ config SUNXI_SRAM config SUN20I_PPU bool "Allwinner D1 PPU power domain driver" depends on ARCH_SUNXI || COMPILE_TEST - select PM + depends on PM select PM_GENERIC_DOMAINS help Say y to enable the PPU power domain driver. This saves power