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: 55055 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp479087wrn; Thu, 9 Feb 2023 09:51:19 -0800 (PST) X-Google-Smtp-Source: AK7set+lpVpdDOLak1WRLeU2vaIriWjE2+OokkVW7EvsPxkSXELiOChSN4k2C8y0J2iwydoDcTcW X-Received: by 2002:a17:906:2b47:b0:878:6675:d07c with SMTP id b7-20020a1709062b4700b008786675d07cmr14598613ejg.37.1675965078830; Thu, 09 Feb 2023 09:51:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675965078; cv=none; d=google.com; s=arc-20160816; b=oT8a7s/Oxd/dV+mAYsO4UMZVpEkJeboXi0RcNdqqhpKI0CI1fTtp0mj/YQOGd7mr1S oUZWYkfy5C6yV3TnBKymvrcVM3zUwtRlMuepqToupFDaKQBgflEiV67c/8q7OztltAN8 ALZ0TE8NXlPYYK8RamtvcWoscrh77qteWTDc74o+gbbcPyBhn/idPEcGPv2Fzkf8Wu9F ffYXnhfI9S96tGph9JFcVz7snx6GTDLJNNmOXjjVkBY2mKew30z64Rf1Dbi2kum74yCd okANT5X12hkMTgcxDDp+Bnb/uxQDT5zhtwUzugPocmYbo0fTfua5OMJnskh9lXJ7la8i 8xzA== 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=ocxsTRFxklCA2TrAA9rcEGDXgUyiQ9T4rmhGw1As36U=; b=ZRWBJajYZiQaf6/MHWddhjgUdx/zsuMWJLtQIC4RHMWgNPKG4pr7dvYIkp4VYCF1zB H6hJpr6KuwS+t9mzy72aSQsHWeBl/lbdWsg1UPcJAIPFIx90AuBT7NYtl0snNeCEVhAl SFcmJB+L0VdR/FQEpMNbNGY8OnKMw/iV42wlPI0cnUF7KVlMRZWXXZUBrZGheKvn4Xb9 9o3XkohyhHixAE3MYeuO+NS1eNbTrdLVcPb5JLmzQ8Z26bel3MMVcyn1cA+nrpbwCCD+ bBB520yLbKuLAh86wRzPr/lqtoS+Uihgy2LBbLzyDeKlZcLuQ19Z4OOhi6sEqwV0tgoa iAHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="U+1e/OVO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ex1-20020a170907954100b0087bdac7c671si2680586ejc.548.2023.02.09.09.50.55; Thu, 09 Feb 2023 09:51:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="U+1e/OVO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbjBIRYF (ORCPT + 99 others); Thu, 9 Feb 2023 12:24:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjBIRYD (ORCPT ); Thu, 9 Feb 2023 12:24:03 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E956A5D1F9 for ; Thu, 9 Feb 2023 09:24:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=ocxsTRFxklCA2TrAA9rcEGDXgUyiQ9T4rmhGw1As36U=; b=U+1e/OVOWKCHrtXA3kNI4q9kLN sxW1OTSIu4ej0fgjG4TSEkMHnF41qw8piM/SMakus5KY1CG2gFsj7qD7TF6p3k+B7bkUgBoeYvKKr yzhBLj6Aw1+/fAT9lzastAxqWP+hxSRkce0jRu2xwMjFp8UmxBijqBly0oU2LtYmnqoHaPC2sWjwq oN41Lpjg4uBDWz9O9MvyBpSbD1RsKeKPvhk+VtHgPR9FyF/O0Ni16k6hfOnwueQbF+fpk3yFJEOCc Q/oH7i5AV+dms/2dpQvL7Qv7156AW29zt1Sgvx7y7nOL/cVbap3ztlVD/XbgscKqBe2w5s96ARTSk Mzj8rbZg==; 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-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757376758289602569?= X-GMAIL-MSGID: =?utf-8?q?1757376758289602569?= 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