Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3745034rwe; Mon, 17 Apr 2023 02:59:35 -0700 (PDT) X-Google-Smtp-Source: AKy350YqjmNgXqvlIaIR4qtkhEdKrtdqmpetMmdS0RMbtnghIERj4fZZ8fx1rpMGBQgTI/LAj1E3 X-Received: by 2002:a05:6a00:238d:b0:63b:8a00:4580 with SMTP id f13-20020a056a00238d00b0063b8a004580mr5721362pfc.0.1681725574823; Mon, 17 Apr 2023 02:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681725574; cv=none; d=google.com; s=arc-20160816; b=qmn+2ZH9E9UazxDl6KZy3Ri7vQPsnMToOVV82uMlTJwN37piTQhBscot80eX+OtYBx jMzbd9vkU/RFarloT876dyIaWduos9+n8nonYDNLWysFKFPpIxpp2XOCkBUk91+ukc0z 922zEsbnqbyqo90IppLIUVmNCsZ1ALL9ZHAaPjTCnTX/Nu9MYoXEQclex6XPoHdC9JFb jCqaOFumpQRcjVlkB4ODVfQHEcg4f1KkaNtMG6hpTFis3BuoXg75N+23CCJJ92xyEh2V JihDDGyFCst5mIZQ5fSJYL6kORxk/U8imGXjpYDD6iaLl5eOTprNU4AGC8ry6b0QGjFH iKxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kRqq00UiLAMenfSZNE0Z4R5AXxYz1Udz0biepttGqRA=; b=BWNIaQejGHqxaRgiAnVjpxgD+8999veHDlxdW4Ff0xk4qV5qUM8sD3LmNY0NMzndpJ iVOOw5ZvdMg0sFPuFKeYEHRxUF/oOxxE5SDdsVnrJkvBJGD4vGV8G0SL83rHiGGPBkfU RiaoM5b51RS86ho2eKG1+u/DHvj9fBzRiYOh5HK8ZefJWZU/zkkJyHI6D+YlGmFDx/1Q LXFH2SyFPZXdnRyURC9laVYSkrYzjHxbXv/+uiszeoCmgSvk6IqkypF9ZouV5aJpf4nb RrceZqFtku/LMHvwCpg4cl6nJTa6D3BeKAc4RLqoTO1sDfwioDoID8oXAdCYUTef1gye xX1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="U9kc9Sw/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r27-20020aa79edb000000b00627f0f8d49fsi9103478pfq.373.2023.04.17.02.59.21; Mon, 17 Apr 2023 02:59:34 -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=@microchip.com header.s=mchp header.b="U9kc9Sw/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbjDQJ4m (ORCPT + 99 others); Mon, 17 Apr 2023 05:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjDQJ4l (ORCPT ); Mon, 17 Apr 2023 05:56:41 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F8861A1; Mon, 17 Apr 2023 02:56:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1681725372; x=1713261372; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7IKmUrUbmAjjOroL5Mi4bl0RbwHdhJ3Qea7NbVaNjsA=; b=U9kc9Sw/KKNQXB1vVT8qgITbLq0QtbgZ0Qj9PVgtwUQlrSdYYUJei+hH LD5uM3UWUgsSZYrPH1AWeo5LE1oLtPMugjQWkToxhTo0ljT1Jq7y5/6ck odUR10b6ExSh1PQzU+fw09qUMKvjx2tl6WYIus7sa24urAB1Opom5cyHC TPq3LkS/YjAFqnhPlN9n4YTp5CVKHVa0WdAtQ4RzP3ITB1WnCYMdRqOPc 2nBm6tuRN/Dc1yTctb9Jw2OYpfDinON5RJd2B5+nZ6VFj6dOL6aSJzorm aoMVxBrqwno9mp7W7swFOjJDoLo7qh/5d/8VtjR8Jxl/BoZhki/vLhtPU Q==; X-IronPort-AV: E=Sophos;i="5.99,203,1677567600"; d="asc'?scan'208";a="147379595" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 17 Apr 2023 02:54:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 17 Apr 2023 02:54:27 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 17 Apr 2023 02:54:25 -0700 Date: Mon, 17 Apr 2023 10:54:09 +0100 From: Conor Dooley To: Hal Feng CC: , , , Stephen Boyd , Michael Turquette , Paul Gazzillo , Necip Fazil Yildiran , Emil Renner Berthing , Xingyu Wu , Subject: Re: [PATCH v1 1/2] clk: starfive: Fix RESET_STARFIVE_JH7110 can't be selected in a specified case Message-ID: <20230417-buckwheat-wilt-92a4e85a5ca0@wendy> References: <20230417074115.30786-1-hal.feng@starfivetech.com> <20230417074115.30786-2-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4HqbxmHeCq5x71ZE" Content-Disposition: inline In-Reply-To: <20230417074115.30786-2-hal.feng@starfivetech.com> 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, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 --4HqbxmHeCq5x71ZE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 17, 2023 at 03:41:14PM +0800, Hal Feng wrote: > When (ARCH_STARFIVE [=3Dn] && COMPILE_TEST [=3Dy] && RESET_CONTROLLER [= =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 compilati= on > test, we should select it only if ARCH_STARFIVE=3Dy. Also, delete redunda= nt > 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 clock dri= ver") > Fixes: b2ab3c94f41f ("clk: starfive: Add StarFive JH7110 always-on clock = 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/Kconfig > 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 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. Cheers, Conor. > default ARCH_STARFIVE > help > Say yes here to support the system clock controller on the > @@ -35,9 +35,6 @@ config CLK_STARFIVE_JH7110_SYS > config CLK_STARFIVE_JH7110_AON > tristate "StarFive JH7110 always-on clock support" > depends on CLK_STARFIVE_JH7110_SYS > - select AUXILIARY_BUS > - select CLK_STARFIVE_JH71X0 > - select RESET_STARFIVE_JH7110 > default m if ARCH_STARFIVE > help > Say yes here to support the always-on clock controller on the > --=20 > 2.38.1 >=20 --4HqbxmHeCq5x71ZE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZD0XQAAKCRB4tDGHoIJi 0rY9AP9ofdEH/qXRLOt97E7lHIo0soJkVo2xSIy6xiugYzf6MgEA8rXhn0dYFMRe 3LI6GDM5MHGdtnwkhboCM7rEtr+jvAo= =rK9S -----END PGP SIGNATURE----- --4HqbxmHeCq5x71ZE--