Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3725049imu; Fri, 30 Nov 2018 05:10:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/WiXxXjF0SH5VWV2k90eVDQQpfdGedyZ4NBkRmfX67L46/yDmY7Az/EZHZJWRJjk3EdaVcB X-Received: by 2002:a17:902:110a:: with SMTP id d10-v6mr5689657pla.85.1543583406680; Fri, 30 Nov 2018 05:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543583406; cv=none; d=google.com; s=arc-20160816; b=pI3fjmV+h6OYurGQ2d+boo9+1h770UL3uBFukV4S1CTN6iyGw4u93qxLKovB+r4mGJ 3unnYXXPz8eU7Vc/Oho6BQwq3wSsP6KYyg9X8Y575rFwDAhf6T2TlnqZBLTuE1mhId7s Y+oMUj8i/Rl17U7g7BByPTGzZSKcQXFoZrkyYu6jkRlRcV7kiT/HGnUQyOjbFBCjA7UR 1njTBIW8sTFBRxQgYwx218pHkEE+57AyOxMbTJhfdvopXgF3qza4v0fEvRZ8+lVGTQ9R GczCAH3HqEmSF5uq6PSUMfrWcZHghdXhSJ7pKJlmegDpcx/FoOXCnWvD1+DDb/D0vkgG Id2w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=K1EhJAEevyCoRKT21+Cf3khuklF9Kp7t+fglG68kQoY=; b=hIK+liyMUxHwqFidt076xQG/hm+1F9sHNOl83WhodKr3BoFLtLDt/7nwRzO1DC5qB1 ppb5C3wvsGWR68dFQFjkuEhVlfxcqrpXrMfrso3du24WNJS783ZTNKHzjqYEx4UY3ED5 vSYLssufgAgQ+mG40/MhD6WNBDSSk8WMR1iGfgva0NxR9vJnbhS8Bpq8tQsgi894Y/Gh 3x/3HrraRwYiTQMHc5oZfFDiB7tex7gQSxarccPsYYCbYS+VOiCsc4QxzEVpNLn9psTB NoD7Ar21JZgaPLdMW06uvlIuDZRu2xdNPyPbldwynVwLB4FFkIKEsWRWOdeF418r9pkf ESLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si4889792pgh.560.2018.11.30.05.09.40; Fri, 30 Nov 2018 05:10:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726597AbeLAASR (ORCPT + 99 others); Fri, 30 Nov 2018 19:18:17 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:22609 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbeLAASQ (ORCPT ); Fri, 30 Nov 2018 19:18:16 -0500 Received: from [192.168.108.68] (unknown [213.36.7.13]) (Authenticated sender: marc.w.gonzalez) by smtp3-g21.free.fr (Postfix) with ESMTPSA id 4A9F913F866; Fri, 30 Nov 2018 14:08:38 +0100 (CET) Subject: Re: [PATCH 2/3] clk: qcom: gcc-msm8998: Disable halt check of UFS clocks From: Marc Gonzalez To: Bjorn Andersson , Michael Turquette , Stephen Boyd Cc: Andy Gross , David Brown , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria References: <20181130065259.26497-1-bjorn.andersson@linaro.org> <20181130065259.26497-3-bjorn.andersson@linaro.org> <273c0544-bf33-fe66-ac42-ad17ea3038d1@free.fr> Message-ID: Date: Fri, 30 Nov 2018 14:08:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <273c0544-bf33-fe66-ac42-ad17ea3038d1@free.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/11/2018 11:55, Marc Gonzalez wrote: > On 30/11/2018 07:52, Bjorn Andersson wrote: > >> Drop the halt check of the UFS symbol clocks, in accordance with other >> platforms. This makes clk_disable_unused() happy and makes it possible >> to turn the clocks on again without an error. >> >> Signed-off-by: Bjorn Andersson >> --- >> drivers/clk/qcom/gcc-msm8998.c | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c >> index d89f8e7c2a59..3d232d266d72 100644 >> --- a/drivers/clk/qcom/gcc-msm8998.c >> +++ b/drivers/clk/qcom/gcc-msm8998.c >> @@ -2403,7 +2403,7 @@ static struct clk_branch gcc_ufs_phy_aux_clk = { >> >> static struct clk_branch gcc_ufs_rx_symbol_0_clk = { >> .halt_reg = 0x75014, >> - .halt_check = BRANCH_HALT, >> + .halt_check = BRANCH_HALT_SKIP, >> .clkr = { >> .enable_reg = 0x75014, >> .enable_mask = BIT(0), >> @@ -2416,7 +2416,7 @@ static struct clk_branch gcc_ufs_rx_symbol_0_clk = { >> >> static struct clk_branch gcc_ufs_rx_symbol_1_clk = { >> .halt_reg = 0x7605c, >> - .halt_check = BRANCH_HALT, >> + .halt_check = BRANCH_HALT_SKIP, >> .clkr = { >> .enable_reg = 0x7605c, >> .enable_mask = BIT(0), >> @@ -2429,7 +2429,7 @@ static struct clk_branch gcc_ufs_rx_symbol_1_clk = { >> >> static struct clk_branch gcc_ufs_tx_symbol_0_clk = { >> .halt_reg = 0x75010, >> - .halt_check = BRANCH_HALT, >> + .halt_check = BRANCH_HALT_SKIP, >> .clkr = { >> .enable_reg = 0x75010, >> .enable_mask = BIT(0), > > FWIW, before applying your patch, the kernel printed the following > warnings at boot: > > [ 1.820756] gcc_ufs_rx_symbol_1_clk status stuck at 'on' > [ 1.992977] gcc_ufs_rx_symbol_0_clk status stuck at 'on' > [ 2.165113] gcc_gpu_bimc_gfx_clk status stuck at 'on' > > https://lore.kernel.org/linux-clk/f4271471-b60a-f056-b453-1cfa593a0fc4@free.fr/ As far as gcc_gpu_bimc_gfx_clk is concerned, downstream flags it as "no_halt_check_on_disable", and sets CLKFLAG_RETAIN_MEM. Regards.