Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3591153imu; Fri, 30 Nov 2018 02:57:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/WaOX1PxiG2aEjSzmcLAapWW3uFMXSlzWppkaTKAcIgSQn3TxE0IDVRJ8xvGYSIHdXDgOlZ X-Received: by 2002:aa7:8608:: with SMTP id p8mr5215679pfn.125.1543575447257; Fri, 30 Nov 2018 02:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543575447; cv=none; d=google.com; s=arc-20160816; b=imSN6rTMxLJNP1laZaI99zmkpT8KunbHsptW69U2+d92X7pq1Lu+zofykJfxXyv99p WL/HpfNEyv5qH8gKG/QWFWtbeewNaHmB+kcCzBKS2KAb07Oc+8D8u3hzpVConaKqCH4K O071BaaT9xK33mAB71KnyrbYLaV+SdYIm/2FTvVDO9L/yICzAbKlXoRyqDFvaJb7USz3 jFvFI1eJYN9hh18JRNNt0tLDfU4lb8fUCoQ3V+gLO0+VzV+ZiPzNMS6riq+UwF4YRibz KP59VDgJrB9ORULxNDmITkuderFSNAVE7piTsmibRHpSjjySrEDIFWeH7JmYMFwNxLF7 uqNg== 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:from:references:cc:to:subject; bh=Vk70/WIkv74/mkiczJsNcJzftT1W8FXj4XqtHaZU09Q=; b=n+Hpc71S+oCkHzheIm24Og0wTyMS6TwnGCBRA8HOIiO33fMf+Qb7/bnXE6ruqAWTsR 92Re/PbrOgJYElOnTINdrl+FrD1UwHJwjuOgDSYxTMXMbm7la2PApVM11Hf1jnfLcQvj rKdX7ed7xjtve9B4TuXZaxpwcTK4R4aaD9DvAzcYaWx9G9uglArZWSb60YlNAKK3gMoE Iz2Ng/jonWCBLGvNLYf+qkF6yJoGQpEA0qjBq5aC4fW1byl9H1xZOtpEV6M4L+Ba1fiz Q4+Cj5sxqRoKneDS0kPbnCx660jcF0YW0hu8vSBysHk35OkwjCpTuVMjhOwabcKbgd3N C0kg== 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 x12si5070734plo.164.2018.11.30.02.57.12; Fri, 30 Nov 2018 02:57:27 -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 S1726966AbeK3WFG (ORCPT + 99 others); Fri, 30 Nov 2018 17:05:06 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:5471 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbeK3WFG (ORCPT ); Fri, 30 Nov 2018 17:05:06 -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 CA0F313F8CF; Fri, 30 Nov 2018 11:55:49 +0100 (CET) Subject: Re: [PATCH 2/3] clk: qcom: gcc-msm8998: Disable halt check of UFS clocks 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> From: Marc Gonzalez Message-ID: <273c0544-bf33-fe66-ac42-ad17ea3038d1@free.fr> Date: Fri, 30 Nov 2018 11:55:49 +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: <20181130065259.26497-3-bjorn.andersson@linaro.org> 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 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/ (NB: gcc_ufs_tx_symbol_0_clk not mentioned) Your patch makes the two ufs_rx warnings go away. Regards.