Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp638738ybh; Wed, 22 Jul 2020 09:23:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWJ4S0ZdJKa2JGhWJ5NWY1HXHpevURgiwzJbuU6OYdIRmws0vsguHbbA3MUMwRXBGNAPwh X-Received: by 2002:a50:c044:: with SMTP id u4mr259563edd.366.1595434985972; Wed, 22 Jul 2020 09:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595434985; cv=none; d=google.com; s=arc-20160816; b=j4biAenMmZGaFE2jygaKacHoPdRS1NNVNHs6ogqhAev9uTk5MBJTQHCjToo+/fA9G/ IjpC7+D7bEwOFQa3QntX7lvQu0N+6ikUL87KCg3uOGQZyFi+CToagxgyvxXMI6zFBAln HmqKFcoFjnzushYBd3+5rG1jH9pNl9Z9yATlacpcUMiK9pqdYT93W33+ByDy1tdJD4sq kXFdwzt1Bu1hYdH6EG+injPnHhqhUo5BVIo6sF27MC5gKYUf0aYwiJkfNCzzC4q1xt67 IKVtPcus6Blo9MQTF9HJhUSCas11zuVhl6L2eZntGWIT6a2XmNgFVta/PkTRGShMc83o MPSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=W2qj1Sf7PcrqUHXAEb/THg9pMML97014ZTi7y/wfL04=; b=RcrE3uvrmmmH0Elh6Sz3TQMiSy9uXCGIQzOexCVee4XEoqxHdpVZBL7bfWRUo4VQtt vvQ9yd/TCj2hzaPJxUQHBqpp0WGr/PQtHQ6L7rUWAKHUWSOpNn1aW9N//S/1G/q0r369 7Ig4jNJhF1JxbLo9F5RIeQyq3aJfHfvJ7JJOplIc/5Y8sTbQKZYOH3rLtT+8oZHDLALT 7EQk3h0bNNcKSE0rEN+zWyuYZSLY/difvONz1hlUk0NDZVnw0vmtMDrgjpQDMupzwiqA 0IKoKXsodN22mGcEPNecuKTQHmQ6h5q3QyI02RMpy+itCeqt+eFBYJtfn2a2PQXJSR54 /Lbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ioZ5xj2j; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si282527edy.563.2020.07.22.09.22.41; Wed, 22 Jul 2020 09:23:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ioZ5xj2j; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729733AbgGVQV5 (ORCPT + 99 others); Wed, 22 Jul 2020 12:21:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbgGVQV5 (ORCPT ); Wed, 22 Jul 2020 12:21:57 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5DB7C0619DC; Wed, 22 Jul 2020 09:21:56 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id a8so2106947edy.1; Wed, 22 Jul 2020 09:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=W2qj1Sf7PcrqUHXAEb/THg9pMML97014ZTi7y/wfL04=; b=ioZ5xj2jTbe7BEk/Bqjg2VgBz+XxeUzFPUDEwAk+U+gklxUhzB7JOtM47FKMBzI7/W 4Xtsw84QyHLJ0S/F/2opJdyiZj987J4IhcHRaYI9EgJBhyQDn514g0HG989uTQr/q5Ll b4/oDtkbIZkuF0McM2VEViP0sdubi91rFcStMfdJ4l0hzSyXc6up5wL6FfOXimij0Dnv fdcU+G3TD92c77Kvaui4aNVO70yaDmxfSq72sqDqZbGNaw25ajW/zIh6n4JiC7cQrS4D i9I0Q+41wubABe2D+7epIOqr+AYYXGxsyHeMKppZ+oM0TKZ/EQNdATDmECFNn1Tl7ZdI JRsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=W2qj1Sf7PcrqUHXAEb/THg9pMML97014ZTi7y/wfL04=; b=dvKY4/K8zRu5AHxrCViJQwlCgIcdLLyPTl8G/xbiavuotoaA+MOe+bNCxS/RfbsIe7 ixJJWx5fnvwtsu1buXMWK4eVc2e9t1sqJ5sh6MWN/g6DIA78oqybYxE49cgHkTRtKnqd 6CKNbZuuqolmzl/jsmm0BQ560yXE0sncLHPnusSXz+vSbtcW7tz4dNxO/ncwPnIT+4Ek fsOC5YVhJqE/rBBy8EXKLPBsRDydXUazngdT0okOgDV5yiAE+lwTM3oTp5mcz1jaVf6G UdwPGmpiZRq/hNu3KUauu0HJt+QLHnhIKQ3l1eymMkxqpU5d9c3F3OkWiO5iOPU51qLd rV8Q== X-Gm-Message-State: AOAM5311Ub4EFPcD3NEKj630EdI9bzTLoXpN+5q9Q9D2Fb6qaz9O0U3y udQTT7Z2s+qWhkoJMwEAxel4/biQZQ== X-Received: by 2002:aa7:c6d3:: with SMTP id b19mr207732eds.207.1595434915199; Wed, 22 Jul 2020 09:21:55 -0700 (PDT) Received: from ?IPv6:2a02:810b:f40:e00:b1ec:e192:dc67:8149? ([2a02:810b:f40:e00:b1ec:e192:dc67:8149]) by smtp.gmail.com with ESMTPSA id o20sm88850ejr.64.2020.07.22.09.21.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jul 2020 09:21:54 -0700 (PDT) Subject: Re: [PATCH] clk: rockchip: add CLK_IGNORE_UNUSED to RK3188 sclk_mac_lbtest To: =?UTF-8?Q?Heiko_St=c3=bcbner?= 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 References: <20200722143137.863-1-knaerzche@gmail.com> <3075813.JVNIx54Eim@diego> From: Alex Bee Message-ID: Date: Wed, 22 Jul 2020 18:21:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <3075813.JVNIx54Eim@diego> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, Am 22.07.20 um 16:37 schrieb Heiko Stübner: > 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 > wasn't aware of that and changed it in v2. >> 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, >> > > > Regards, Alex