Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp562044ybh; Wed, 22 Jul 2020 07:38:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5VlK+Rjzpd7TIjqyFtU+6wQPpEXkbHUeP/Nlo8XZv/fRq9FURhPkjS1kVehmuuRIjgwwQ X-Received: by 2002:a17:906:76d7:: with SMTP id q23mr31355022ejn.95.1595428680646; Wed, 22 Jul 2020 07:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595428680; cv=none; d=google.com; s=arc-20160816; b=ZEOznoQaaixrmBN7MRqab1MGLYayJAdj6S9nn/9h+4A6wyJuGQ71FC7oNWXGScAvF/ mQBYddWbGyim7kI2AkEIlw8rQlbO4qiAjn5A41ICE7kIRt1rtSfJDmJvvgqmPX6aldKF 1LrE5yuoTNR6gvUPCM1/OARgP5ix9983+g2UBI/evua2+N4REFOgg7d6li8zxLWaRHi0 8tmWVOhrZiruoZ3HhuGI0Kq88svHr2VpF6DLHm+pgo1ry66oKuFSJ77ATrLZjHP3tXTi vl8idTIAcMhKgS9gWWYfG0dR9WAPhxZcFEjavNlqAMGIXIfYq03uhkRS6/+OVdTyU2Zl Ja9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+uVW9rKRHpvJwX3IBWYlCdOQZqgTPjzfwA0sXqpvXCw=; b=BqWp4f9u0fGLd5i7oVr8mc5ldroVQ52ZW1tUrNwlF0+jPTZgPUyebn5+YXoSQfRA98 fdV23iSDHe6oPjJk7yLi+TodHjAgq5vzWXD/mHOdEsR/3FSgqYv/l/0qnnqVfyeXXlyI 2n/QceetVmD/eg50k0G3Sq4zmdYaXFBvyIr00JVhH2f/O7pi8QzWJEwlhfdjNbUIO9T4 j7LIPCFGTgryJKv10J40k4UrDN9iA4vtC3Zj4LJO8uXXLmT1/QHU7pO9mw7B/B788/gS 4U68zX9JutpLpYbuWQ04UwGnETkf/iH7FC4psFuxf/YjYmGT0BVU4sbAQH7q6GtO1B8O Ku0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si178741edn.145.2020.07.22.07.37.37; Wed, 22 Jul 2020 07:38:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732485AbgGVOh2 (ORCPT + 99 others); Wed, 22 Jul 2020 10:37:28 -0400 Received: from gloria.sntech.de ([185.11.138.130]:43734 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728837AbgGVOh1 (ORCPT ); Wed, 22 Jul 2020 10:37:27 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyFs1-0003sN-NZ; Wed, 22 Jul 2020 16:37:21 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Alex Bee Cc: linux-rockchip@lists.infradead.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: rockchip: add CLK_IGNORE_UNUSED to RK3188 sclk_mac_lbtest Date: Wed, 22 Jul 2020 16:37:21 +0200 Message-ID: <3075813.JVNIx54Eim@diego> In-Reply-To: <20200722143137.863-1-knaerzche@gmail.com> References: <20200722143137.863-1-knaerzche@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am Mittwoch, 22. Juli 2020, 16:31:37 CEST schrieb Alex Bee: > Since the loopbacktest clock is not exported and is not touched in the > driver, it needs the CLK_IGNORE_UNUSED flag in order to get the emac > working. could you please add it to the rk3188_critical_clocks array instead. CLK_IGNORE_UNUSED only protects it against the clock subsystem disabling it on boot, while as critical clock it also gets protected later. Thanks Heiko > > Signed-off-by: Alex Bee > --- > drivers/clk/rockchip/clk-rk3188.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c > index 77aebfb1d6d5..892b1edc3444 100644 > --- a/drivers/clk/rockchip/clk-rk3188.c > +++ b/drivers/clk/rockchip/clk-rk3188.c > @@ -354,7 +354,7 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = { > RK2928_CLKGATE_CON(2), 5, GFLAGS), > MUX(SCLK_MAC, "sclk_macref", mux_sclk_macref_p, CLK_SET_RATE_PARENT, > RK2928_CLKSEL_CON(21), 4, 1, MFLAGS), > - GATE(0, "sclk_mac_lbtest", "sclk_macref", 0, > + GATE(0, "sclk_mac_lbtest", "sclk_macref", CLK_IGNORE_UNUSED, > RK2928_CLKGATE_CON(2), 12, GFLAGS), > > COMPOSITE(0, "hsadc_src", mux_pll_src_gpll_cpll_p, 0, >