Received: by 10.192.165.148 with SMTP id m20csp768403imm; Fri, 4 May 2018 20:47:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpyvjVezcQ087Aiu9AXAhqdsjewgjnB7NRhjKQbNxKcwIctRdDIb7o0dKoFbDtXWlE73G4L X-Received: by 2002:a17:902:14d:: with SMTP id 71-v6mr5415826plb.275.1525492037742; Fri, 04 May 2018 20:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525492037; cv=none; d=google.com; s=arc-20160816; b=YdPna1v2wYwWLDiZumdeyMqZd3llVNLzp3lDJ76EVeVTvSKMWIi0goPomuEGJmkGIs kN3hjCT27fSwUpaTUzfGlk2WdTXDVEgTOW6dsWqKZQ+o9TvzC07d4uZ3MGp4gOh7hEFw yA5lWx01+hIjsRkIsGDqsT7/O3YH/lJ3jn5IeGLIVR6NYT2sfCl1xKKiXXps3fBVQvvB aZLBPoNZJj+wY2KBkrmr8gYQNQ3AFl6Zyw1ssCcsRf0KoE+31rTgKtSRLnwoPbNqUlnr 5LYXsg1w8aL537+a8igVLtvXOgNMFyYLlt1L0cbZSkRwF7Xm0g32W/Oja/X2il+z4gP+ y9qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=uPaIxijdoYliYwB9CxWDcd5oBrjcfisSx6shHXzNPpA=; b=ZryFhO6COCqzezp8l1/Fq3u+PYAYgCEKx2/DpAGcGVx/mguzzcBVMWiwWgOdomfyoj jCzQ4bYpuchx/lGyWlnDcM0jTsak84bgPnwy9v+1vqNUr59zhaE1mdL4qvTC0cuGIJdZ cduRCte5M5NZcvb2usihjPIUyvJdvN0mC5Uz0hOxxGUk0+ap6Ph9rfYcaFV428/mNq7y /gehZmj3URRWNOH7ZbkmS0AV1dTeyXXffn1+yKzQjeMoBshD1ngj4340zxUimQbOpqkY 7fvs5CuaFPbReGHF9qWeghEzcO3PVre778Plu82/A9Ko6xNKzupwMmJ9Ulf+R41LP42y xEUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jy6fIJPw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12-v6si8289239pgv.556.2018.05.04.20.47.03; Fri, 04 May 2018 20:47:17 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=Jy6fIJPw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751988AbeEEDOl (ORCPT + 99 others); Fri, 4 May 2018 23:14:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:46288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508AbeEEDOj (ORCPT ); Fri, 4 May 2018 23:14:39 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B05D32133D; Sat, 5 May 2018 03:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525490078; bh=abAZuucME7vgHBry1ALvGGl2uBlrba3fo4uhS+e3pIA=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=Jy6fIJPwvDQ1YfCYiJcJq0x7CTRIpuSr5+N6S2Yp/v7TgNFAVpOeKK4rPh8ZEky+4 moKZvAYsSH7QQjNArOiaOBbp5WX+ytjjZoMk+bMTLnq2ZyWIECgjYmkJSHO4Y9WuKC tr9Ek/e/gsNl1MoEu/PMrZLIhCO9a4gpiDYoBY84= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Amit Nischal From: Stephen Boyd In-Reply-To: Cc: Michael Turquette , Stephen Boyd , Andy Gross , David Brown , Rajendra Nayak , Odelu Kukatla , Taniya Das , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <1525105210-8689-1-git-send-email-anischal@codeaurora.org> <1525105210-8689-4-git-send-email-anischal@codeaurora.org> <152524580953.138124.2159165461856101134@swboyd.mtv.corp.google.com> Message-ID: <152549007801.138124.1209193202019560634@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v6 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SDM845 Date: Fri, 04 May 2018 20:14:38 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Amit Nischal (2018-05-04 03:45:12) > On 2018-05-02 12:53, Stephen Boyd wrote: > > Quoting Amit Nischal (2018-04-30 09:20:10) > >> + > >> +static struct clk_branch gcc_disp_gpll0_clk_src =3D { > >> + .halt_reg =3D 0x52004, > >> + .halt_check =3D BRANCH_HALT_DELAY, > > = > > What about this one? It's not a phy so I'm confused again why we're > > unable to check the halt bit. To be clear(er), I don't see why we ever > > want to have HALT_DELAY used. Hopefully we can remove that flag. > > = > > From what I recall, the flag is there for clks that don't toggle their > > status bit at all, but that we know take a few cycles to ungate the > > upstream clk. So we threw a delay into the code to make sure that when > > clk_enable() returned, a driver wouldn't try to use hardware before the > > clk was actually on. But these cases should pretty much never happen, > > hence all the pushback against this flag. > > = > = > For these "*gpll0_clk_src" and "*gpll0_div_clk" clocks, there is no halt > bit to check the status and it is required to have delay for few cycles > so that clock gets turned on before a client driver to use the hardware. Ok.. but then why is there a 'halt_reg' configured for the clk? > >> + > >> +static struct clk_branch gcc_ufs_card_rx_symbol_0_clk =3D { > >> + .halt_reg =3D 0x75018, > >> + .halt_check =3D BRANCH_HALT_DELAY, > > = > > There are still HALT_DELAY flags for UFS though? Why? > = > For ufs_card tx/rx symbol clocks, we don't poll the status bit as > per the recommendation from the HW team. We can change the halt_check > type to newly implemented flag "BRANCH_HALT_SKIP". Please update us with > your thoughts to change the flag to "BRANCH_HALT_SKIP". Yes use HALT_SKIP please. > = > > = > > Also, are you going to send DFS support for the QUP clks? I would like > > to see that code merged soon. > = > Taniya has sent the patches for DFS support for QUP clocks. > https://patchwork.kernel.org/patch/10376951/ > = I'll take a look.