Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5337790rwe; Tue, 18 Apr 2023 05:43:18 -0700 (PDT) X-Google-Smtp-Source: AKy350b6IUM3XR1ujCfyPag848cklzRnHW7xOwz9jZpUNWTWmunUtolju87KqjUunhPFkhqoR8As X-Received: by 2002:a17:903:228d:b0:1a2:8940:6dbd with SMTP id b13-20020a170903228d00b001a289406dbdmr2243891plh.45.1681821797838; Tue, 18 Apr 2023 05:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681821797; cv=none; d=google.com; s=arc-20160816; b=pSXsahvStHsQJKOYQ3z73YA+JQjzmggyOmcP3+5dJhJfG3BEnO0KEMOTHWaxXgdc2k ENJ6GZP5by8jtzCiBeacgbCTgfXwmYFd9mVW80ItkG3mRq6FLZF4QUDT+5Zlbquk0ctV UoT7l5tYjFvBZ/kAEW0Zl4C3C/hHGZQT1zUO7+AY1lWA8LldVXxs/qt+VKTcpjtftCwp ziWpO22IlyM/tq8FApsSXCNEuukwSx3FHkepBottFWWMN8hg8EDmpbYO78Gwm7iyANrb CHWTS5Tmw4G6+74oGrChTISAMyK5tU0EQFFHqow6pA/3yM+cvXHu3YzeiCzs3jTLmPWR qi5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=yJ9Rm+KU2vQE1lcscVfvdJXwC7xmYvggeLx4l72O3ME=; b=vj2hFISlZa4roLXe26iejZ0VqZn2NyJDcxmf+SSI0Hy3Wyjf6JCM9A53ugOpiwz1YT WABS9IpRMGOmr6c9CUUQdTpWvaKPfk3js3fYakrK5ifBz31/6KO/GUjILDvurML7NX84 W0Y7rpnghz9IS7i4l1+rKEzLPS1JY0BjpBJVD0WmCYWeC8R+kc9A6v265HaCtN5iCFds A2C8p4ebDSsW9qIJjrLCYlwxcmyr8Wl+hnLLWcaVSjYJGKbRJP2cpjQ6EzSrFzme2jwt y5K3pRl2Ck87k5Bgd9xUib3NfvEcgARP+UFoJW8SkvJVdyMAzC0MjxoPB+hf0hlfEmSO xxAA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u24-20020a170902a61800b0019b354d0268si436778plq.280.2023.04.18.05.43.06; Tue, 18 Apr 2023 05:43:17 -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; 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 S231910AbjDRMmv (ORCPT + 99 others); Tue, 18 Apr 2023 08:42:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231906AbjDRMmq (ORCPT ); Tue, 18 Apr 2023 08:42:46 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6C57CC3C; Tue, 18 Apr 2023 05:42:27 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 9A27B24E31D; Tue, 18 Apr 2023 20:42:26 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 18 Apr 2023 20:42:26 +0800 Received: from [192.168.125.87] (113.72.144.253) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 18 Apr 2023 20:42:25 +0800 Message-ID: <18211b73-346d-d6ca-6d34-bc84184f8f55@starfivetech.com> Date: Tue, 18 Apr 2023 20:42:24 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v1 1/2] clk: starfive: Fix RESET_STARFIVE_JH7110 can't be selected in a specified case Content-Language: en-US To: Conor Dooley CC: Stephen Boyd , , , , Michael Turquette , Paul Gazzillo , "Necip Fazil Yildiran" , Emil Renner Berthing , Xingyu Wu , 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> <0fe42faa3b34f82cc2fb73ae61460bf2.sboyd@kernel.org> <20230418-caliber-clavicle-e8c1beb3fb75@wendy> From: Hal Feng In-Reply-To: <20230418-caliber-clavicle-e8c1beb3fb75@wendy> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.144.253] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On Tue, 18 Apr 2023 07:31:47 +0100, Conor Dooley wrote: > On Tue, Apr 18, 2023 at 10:14:06AM +0800, Hal Feng wrote: >> On Mon, 17 Apr 2023 17:22:01 -0700, Stephen Boyd wrote: >> > Quoting Conor Dooley (2023-04-17 03:18:35) > >> >> 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. >> >> With further consideration, on the other hand, if we set `if ARCH_STARFIVE` >> here, it can point out that we need the reset driver to boot up JH7110 >> besides the clock drivers, and the reset driver is not a necessary option >> for compilation test. So the reset driver is independent to the clock >> drivers when you doing a compilation test. > > If ARCH_STARFIVE is enabled, both options (RESET_CONTROLLER & > RESET_STARFIVE_JH7110) will be selected & you don't need to worry about > people not realising this. Try it out & look at the option in > menuconfig. > >> If we set `if RESET_CONTROLLER` here, the reset driver will be compiled >> automatically when (ARCH_STARFIVE [=n] && COMPILE_TEST [=y] && >> RESET_CONTROLLER [=y] && CLK_STARFIVE_JH7110_SYS [=y]). > > This is what we want, right? The more often it gets built by randconfig > etc the better, especially for archs that are not RISC-V. OK, will fix it in v2. Best regards, Hal