Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp252906pxu; Fri, 4 Dec 2020 02:23:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0rDkQQsL/oCyMm7HvH2E995JlMKDM1rQaIR2bKMkpOsqRq2XbGAgvXqIUTyz0rVQITors X-Received: by 2002:a17:906:145b:: with SMTP id q27mr6570201ejc.86.1607077381743; Fri, 04 Dec 2020 02:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607077381; cv=none; d=google.com; s=arc-20160816; b=Kg7eT7ChMHXrIqY1zpS7y2u671odqk5NLQ5VT4X+6bhN3dldkVUAEPBpnvZfaM2HCs tuGj6mNSo/HNoWCkd2lfi0ccTZVoYEAIIpRHnyPtrucN3hRHMQDNvDANLyCgWWwaDu4b 4VpD2htPNrnhjriSuXhLLOXiDHDaTJ50kv5TR8MXLR1vE1H5Jihlykt27V6BoY0IgpKq 5UmZJcOWHPaxKtrBzlW13lZFciEFZ+v+mwn5l+EMe+B2DPPG3oZ6yi+qTbmhAScH6B7T RJtWxxiUvxGuTdYPscJmNIn8cbuD0LlnH1BCp3Kf30lRXtijNb837XsymvztamU6eWAW Vu9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=ZsfGPxUCeWmNc6x1edYmT492Dq32CXLIOyX+APqjldE=; b=kZW0akRF+qwRkTodzuk/0MdKlt9e5OXewgrskF5iKZMtYQQoTKn6wEsx682a1mON65 k5LdCJbYwXWbtVqkFWlqpbbZSS/zTodh2xOSlyUo+x0NyFcYGhd6Qo1Az2r4fxAyVyuO S+SXi2/mLUKjL7BuDHkiJo6b+Y+H8HC4KqO8BejHC5s5W4CcOHhqiL9gVPvgv26WvEQO JWsfJmwziEcaVh7MrIb7XoGjYgXGIF+D6QIIRGOVzowU42aStUSmKzru+WyQ6yzMaxA/ fkdJWAh5FQHOCIjlF5IYaSD03EPco1yXAEWVpElcpjr3TuvMlbBOq4fWj0P3gajL9nSb Bt4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l5D36wce; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec19si1083934ejb.669.2020.12.04.02.22.39; Fri, 04 Dec 2020 02:23:01 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=l5D36wce; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387662AbgLDKUA (ORCPT + 99 others); Fri, 4 Dec 2020 05:20:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:39020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729282AbgLDKUA (ORCPT ); Fri, 4 Dec 2020 05:20:00 -0500 Date: Fri, 4 Dec 2020 15:49:14 +0530 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607077159; bh=hNPxyUmSTItskXGbatM3qf8oZU1dgUwfiUVEC5qpV9c=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=l5D36wcebTAZH7I+6HRLCp809Uqqs1+EVpWXwjwvHBwYu6HYG2vzsMvi2kAjSQXBJ 6e8u3ZP/Gvt5+s+pnMFlyNALEmx4ZLApMKlAtPQ6L73DWGlzZpe28wqfajovYbhJiZ dJBuzxBIsqFf1LsD0uurRFbaQCWVrVIxif8DU2Qwlm5mP8YNwdfcn/9kaqoiQmtkiD 9SpmjMu7XEnPI0ZrhWWMLdjMXnRGge3PEPNEFzwRC32BCgJAZEQzathkRE4Df3n0iY 0tcRdNFGM0ZxnZ0bEghZagPLkw7xjgzRAR9OX4jhmHNyiNz1UE/uP2il9qQnTFH11u ljqESjB6VSiew== From: Vinod Koul To: Taniya Das Cc: Bjorn Andersson , Stephen Boyd , Vivek Aknurwar , Andy Gross , Michael Turquette , Rob Herring , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jeevan Shriram Subject: Re: [PATCH 5/5] clk: qcom: gcc: Add clock driver for SM8350 Message-ID: <20201204101914.GO8403@vkoul-mobl> References: <20201203070241.2648874-1-vkoul@kernel.org> <20201203070241.2648874-6-vkoul@kernel.org> <20201204043502.GJ8403@vkoul-mobl> <302cf18a-080d-a521-8c7a-39c265fbceb8@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <302cf18a-080d-a521-8c7a-39c265fbceb8@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Taniya, On 04-12-20, 14:20, Taniya Das wrote: > On 12/4/2020 10:05 AM, Vinod Koul wrote: > > On 03-12-20, 18:06, Bjorn Andersson wrote: > > > On Thu 03 Dec 01:02 CST 2020, Vinod Koul wrote: > > > > diff --git a/drivers/clk/qcom/gcc-sm8350.c b/drivers/clk/qcom/gcc-sm8350.c > > > [..] > > > > +static int gcc_sm8350_probe(struct platform_device *pdev) > > > > +{ > > > > + struct regmap *regmap; > > > > + int ret; > > > > + > > > > + regmap = qcom_cc_map(pdev, &gcc_sm8350_desc); > > > > + if (IS_ERR(regmap)) { > > > > + dev_err(&pdev->dev, "Failed to map gcc registers\n"); > > > > + return PTR_ERR(regmap); > > > > + } > > > > + > > > > + ret = qcom_cc_register_rcg_dfs(regmap, gcc_dfs_clocks, ARRAY_SIZE(gcc_dfs_clocks)); > > > > + if (ret) > > > > + return ret; > > > > + > > > > + /* FORCE_MEM_CORE_ON for ufs phy ice core clocks */ > > > > + regmap_update_bits(regmap, gcc_ufs_phy_ice_core_clk.halt_reg, BIT(14), BIT(14)); > > > > + > > > > + /* > > > > + * Enable clocks required by the i2c-connected pm8008 regulators. Don't > > > > + * register them with the clock framework so that client requests are > > > > + * short-circuited before grabbing the enable/prepare locks. This > > > > + * prevents deadlocks between the clk/regulator frameworks. > > > > + * > > > > + * gcc_qupv3_wrap_1_m_ahb_clk > > > > + * gcc_qupv3_wrap_1_s_ahb_clk > > > > + * gcc_qupv3_wrap1_s5_clk > > > > + */ > > > > > > Isn't this a workaround inherited from the downstream control of > > > regulators from within the clock core? Does this still apply upstream? > > > > Let me check on this bit... > > > > Thanks > > > > No it should not apply. Thanks for confirmation, removed now. Will send v2 -- ~Vinod