Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4697352rwe; Mon, 17 Apr 2023 17:31:20 -0700 (PDT) X-Google-Smtp-Source: AKy350aPiAhF8PGGn4KhKAIZS10JEt7IYqqDP7Bl5eS3NVpC3mLV7bfWh43vPrX3j/S+gO/YB/1G X-Received: by 2002:a05:6a00:10d2:b0:63b:7bc7:8049 with SMTP id d18-20020a056a0010d200b0063b7bc78049mr12786313pfu.2.1681777879948; Mon, 17 Apr 2023 17:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681777879; cv=none; d=google.com; s=arc-20160816; b=LTFVsgSRob3L7JsTAoOOpGAC2/81jVxvj0y/He+nOjPbeLV6R7wZ+o0kCUHNVgCevl ko819FvjI7R1iySxYr3H9RsDIgobkxZno/qxn8W7Ay5/rdnVw+JfwSeB9n2yeVyt7MN6 vNPj+tAUTKBDjJzkBAsXTkOOuj1CUhSUwGrH1efnO0WzzUx4w4skKPRtENEOXdGPMiTd ngH9MoZx+0Kju5AdEPYOz/vNa2bz03+07q6R3/a778SBEaQWvjSuBCKjr2QWeGxUyG5y 0g8jglgmfGIeCEZJQB5n6nu/eSzJxq/krljQ87fH53hYTCLdVUlH31zGoby6OC4zJy8D cy9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=LWVT0pupnAnXrkzUoYLBdfn5iESolFK9tj9P9ubCimQ=; b=DBuxUutCdMfGEblE7TvhqbA0dkZ4OYDIug9yn2UYm3P8w9ckdD4KGDcmUp31JEpye6 Mn/Z/ocThjugoq3J8ykxIFKsV7VOJZUqoRSrqL79XOkworbFmNcwMDfjuMYu4jIYyDSG XFEHrPEaDHAvkA4dcpqHExx9xoU8olOfT0I4vgR5f2gWjO+xfooxFnMYxmkNLNy2l0j6 Jt6laW4P43ZWudFaq726ThS8n/2/qy1zkHG5T/7KbuOLtx8LzB9RQIwXBtUOudIzMjpO gJvGfKGOCO4zaHDfTDKDkFGz7VNkOfqQwmtI6+Tl7E6AN4G2MPKtI/NG+PJUP752Rfph PIVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JV548fxo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a188-20020a624dc5000000b0063b78674625si8194307pfb.327.2023.04.17.17.31.05; Mon, 17 Apr 2023 17:31:19 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=JV548fxo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbjDRAWH (ORCPT + 99 others); Mon, 17 Apr 2023 20:22:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjDRAWG (ORCPT ); Mon, 17 Apr 2023 20:22:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC9B44C11; Mon, 17 Apr 2023 17:22:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8A8C9625AD; Tue, 18 Apr 2023 00:22:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEE6EC4339B; Tue, 18 Apr 2023 00:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681777323; bh=6B9H24R54yv+r+KBdloI2WZn+iJMLoHViIQTdOdI35o=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=JV548fxoNPBFu/4qd9yOffE648bfbnpyWs5PGAt02g2PT1WIQqU0JDmdGDteL7Iup dd7Gr8B1bs2TZmQ8mY78mFZqHiWE1cJk0K1j+zbfAtP5wbtvwXXFYY3tbz2GaDKwws dBKMLa0jFb2TVLJ6qi6XjosEQGA4pi1wo2W/rq9SIiSsKvOmzHejqNxc1g7W5BD1u1 9J0lULT9ngVNlOw+OoqQMNggNipqlm67pLocsg1AicCB4v4/xV3EdEbkFvK8DxTdWn IJgW+G3Gc/OXGdZBwVw017N7rXO9gPsHNGrzQuDVEAeb8y5d1d5Jgv4Jdq2soZnRUa cm+UCH+hIDO2g== Message-ID: <0fe42faa3b34f82cc2fb73ae61460bf2.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230417-bolster-vitality-89d279146497@wendy> References: <20230417074115.30786-1-hal.feng@starfivetech.com> <20230417074115.30786-2-hal.feng@starfivetech.com> <20230417-buckwheat-wilt-92a4e85a5ca0@wendy> <83c5a35a-c646-cbc7-83f9-c02fcb24e069@starfivetech.com> <20230417-bolster-vitality-89d279146497@wendy> Subject: Re: [PATCH v1 1/2] clk: starfive: Fix RESET_STARFIVE_JH7110 can't be selected in a specified case From: Stephen Boyd Cc: linux-clk@vger.kernel.org, oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org, Michael Turquette , Paul Gazzillo , Necip Fazil Yildiran , Emil Renner Berthing , Xingyu Wu , linux-kernel@vger.kernel.org To: Conor Dooley , Hal Feng Date: Mon, 17 Apr 2023 17:22:01 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Quoting Conor Dooley (2023-04-17 03:18:35) > On Mon, Apr 17, 2023 at 06:06:29PM +0800, Hal Feng wrote: > > On Mon, 17 Apr 2023 10:54:09 +0100, Conor Dooley wrote: > > > On Mon, Apr 17, 2023 at 03:41:14PM +0800, Hal Feng wrote: > > >> When (ARCH_STARFIVE [=3Dn] && COMPILE_TEST [=3Dy] && RESET_CONTROLLE= R [=3Dn]), > > >> RESET_STARFIVE_JH7110 can't be selected by CLK_STARFIVE_JH7110_SYS > > >> and CLK_STARFIVE_JH7110_AON. > > >>=20 > > >> Considering RESET_STARFIVE_JH7110 is not a necessary option for comp= ilation > > >> test, we should select it only if ARCH_STARFIVE=3Dy. Also, delete re= dundant > > >> selected options of CLK_STARFIVE_JH7110_AON because these options are > > >> already selected by the dependency. > > >>=20 > > >> Fixes: edab7204afe5 ("clk: starfive: Add StarFive JH7110 system cloc= k driver") > > >> Fixes: b2ab3c94f41f ("clk: starfive: Add StarFive JH7110 always-on c= lock driver") > > >> Signed-off-by: Hal Feng > > >> --- > > >> drivers/clk/starfive/Kconfig | 5 +---- > > >> 1 file changed, 1 insertion(+), 4 deletions(-) > > >>=20 > > >> diff --git a/drivers/clk/starfive/Kconfig b/drivers/clk/starfive/Kco= nfig > > >> index 71c1148ee5f6..3fad4adee841 100644 > > >> --- a/drivers/clk/starfive/Kconfig > > >> +++ b/drivers/clk/starfive/Kconfig > > >> @@ -26,7 +26,7 @@ config CLK_STARFIVE_JH7110_SYS > > >> depends on ARCH_STARFIVE || COMPILE_TEST > > >> select AUXILIARY_BUS > > >> select CLK_STARFIVE_JH71X0 > > >> - select RESET_STARFIVE_JH7110 > > >> + select RESET_STARFIVE_JH7110 if ARCH_STARFIVE > > >=20 > > > Hmm, I don't really follow the logic above. > > > Why not just make the if be `if RESET_CONTROLLER` rather than > > > ARCH_STARFIVE? > > > I'm probably missing some obvious reason why not. > >=20 > > Note that RESET_CONTROLLER is selected by ARCH_STARFIVE. Thanks. >=20 > Aye, just the explicit dependency seems like it'd be less fragile and > more obvious in the future. Agreed. Be explicit so we don't have to hunt down select dependencies.