From mboxrd@z Thu Jan 1 00:00:00 1970 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 4217DC61DA4 for ; Sat, 4 Feb 2023 16:55:28 +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:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZTRumvBAB6mdm7dpjrQFro0NIXuQIQx/+cFTRBL/TMA=; b=1DnfhRWB7q7/mp IAJHPDIUeLzu04Zawkr4JqOVIOmgYpXD8waGPwtDFobaxb31eIo+5bizOQlabvaxqofcpKdEJ1HdO tfc8Y1beA7E7L3bUyl1aEFf1Ov+QjjpDDYyFa14p0sjF9GNtzQ0aLyNzuln/vyW6xl3rzSMxn3iv6 8gmBNpAD4jZmL2zMcYUENly5jkwdxzqSJXVBUN9RHuPwS3PTN6KYLdhnqbFQ0gxjb+w1bkJX5s38W 2pbgkhOv406VO4DXWRlxMClSVrtSKQgaRKycqqX1gNOIlnRTj2ubV8a+BNG+4+o1B5kPFda+aXrM6 O4riarTdU9JrlEWfIDqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOLo1-005PP9-Mg; Sat, 04 Feb 2023 16:54:25 +0000 Received: from [2601:1c2:d00:6a60::9526] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pOLny-005POp-B4; Sat, 04 Feb 2023 16:54:22 +0000 Message-ID: <2d9a36e7-4518-a23f-9f0c-84b830e57d51@infradead.org> Date: Sat, 4 Feb 2023 08:54:19 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] soc: sunxi: select CONFIG_PM Content-Language: en-US To: Arnd Bergmann , Arnd Bergmann , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , sparclinux Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org References: <20230130130453.379749-1-arnd@kernel.org> <46dafb64-81d2-c084-97c5-8d01e8b9785b@infradead.org> From: Randy Dunlap In-Reply-To: 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2/4/23 02:38, Arnd Bergmann wrote: > On Sat, Feb 4, 2023, at 08:47, Randy Dunlap wrote: >> On 1/30/23 05:04, Arnd Bergmann wrote: >> >> Apparently sparc32 does not support PM (arch/sparc/Kconfig): >> >> if SPARC64 >> source "kernel/power/Kconfig" >> endif >> >> so I think that SUN20I_PPU should also depend on !SPARC32. >> Does that make sense? > > I would suggest working around this in arch/sparc/ instead > of every driver that uses 'select PM', perhaps something like > > --- a/arch/sparc/Kconfig > +++ b/arch/sparc/Kconfig > @@ -283,7 +283,7 @@ config ARCH_FORCE_MAX_ORDER > This config option is actually maximum order plus one. For example, > a value of 13 means that the largest free memory block is 2^12 pages. > > -if SPARC64 > +if SPARC64 || COMPILE_TEST > source "kernel/power/Kconfig" > endif > That looks good. Thanks. > The issue does not happen anywhere else, as it's fine if > kernel/power/Kconfig is not included at all. I'm also not too > worried about random sparc32 configs since it's pretty much impossible > to build a sparc32 allmodconfig or randconfig, with all the other > bugs that runs into. OK/ack. -- ~Randy _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel