Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp909482pxu; Thu, 3 Dec 2020 16:09:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPjwvEVBoSuao+jOW2Y2VQ/j76bzz0c7VfDBCx+NbFbXEh6AaxOTJUtdcn+EZUmKF4WFDp X-Received: by 2002:a05:6402:1748:: with SMTP id v8mr5289126edx.136.1607040558100; Thu, 03 Dec 2020 16:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607040558; cv=none; d=google.com; s=arc-20160816; b=OZRty3hN6s5ncyz+ssAFBKrf/4xQMrQJUEcGTjrAMHe1xsWZBJSj1FFsmiDIoiZCa7 pFNAG+NKgEoo6CT2KKf1h2b2Wg6bOqr8fpfuU7Ej2nBAUsCRyhue4Va47eig4lZoJG6j OMSfNCieydt1OoiyctK2mDWMcwpY+5Tstre8c1axcAdeVDn3mI+FHf4QQyPOqEKWbrOw 0ZzF9HvFRYpnby6ttmj40nGjd3DZDzED6tggERXWMDQ2cTc/OFtZ0mGl/s4m4ScHnPxi RAhsLMROEeqXsY6hKdjGKIw6Y/YYgVwcQQe42DNkaIuvN0yuMvTc2s7zPZcqx5GilqFL 9STQ== 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:date:dkim-signature; bh=jVsiot8Y1A046lL18k/UOo07aqMmS1df6VhZY+TySxc=; b=GoEs4ikI0sMlZJus7ZIPV4BMur+oRKmpl97VZpQQdP+YVIyzYYXV67IftqGRLNKkrv Bo1OTihKA7a2F/J4pk4unTk9D3X8dFXPnDr+qkdnGdFYkhvpkTtO1jBTHPr9EI2QyDoT yqfNNJGx71uRMwjZJd22p84+TkM9+efDULkBx4iaUnBa4ebfr/hhQOKQTrkTFLr4INKv lLZpb/uDIq6DvFrHOQOwqD4WtuOBDDIwSMg2jBJw7WxPq1SmWSYkj1/0pFWRiDDja47r NQOHpxlB2h03Zv7UWLth0X1FN41GoWFf0KZwDLqSSvVMa2slhwPQVDZ8W5xmoVJMJX6P FMlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xtyhAKYS; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si1875189edy.420.2020.12.03.16.08.54; Thu, 03 Dec 2020 16:09:18 -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=@linaro.org header.s=google header.b=xtyhAKYS; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389336AbgLDAHD (ORCPT + 99 others); Thu, 3 Dec 2020 19:07:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728595AbgLDAHC (ORCPT ); Thu, 3 Dec 2020 19:07:02 -0500 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E156CC061A55 for ; Thu, 3 Dec 2020 16:06:18 -0800 (PST) Received: by mail-ot1-x342.google.com with SMTP id j12so3574282ota.7 for ; Thu, 03 Dec 2020 16:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jVsiot8Y1A046lL18k/UOo07aqMmS1df6VhZY+TySxc=; b=xtyhAKYScBg0oa61H3UpkZ+gwuq/eRBTNYXRQ/raewLzXKt/Zr4XW1bJb5BUEBtogN DNXa+F1syfTPU4figu57df/xPjKJOSYsicMV8NW9HEm2mujdehIsi4N05/WFQPskNr8l x+ebglCl7vqW7GzfYmHmmNIg5Jv4cCxz9YonCpVHM601/ngTbo56DXBugETILuhWtBsd pLih91zGwtH+AVt0HIV9HyMaUDaSwkun80zdU1yZp4MvsYYw0otLYhun87ySxfax4g+P HdhwXZgWnbD6BGr7lblaKoS5+W+c9D6tnNUBQFOKpC/MDW7nSUBpIv44BSM/5mLLyJ+N PqWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jVsiot8Y1A046lL18k/UOo07aqMmS1df6VhZY+TySxc=; b=WfY+SI6+OvW8H2OuBIcVmd7EpNjQv+73ddTKdpXetkFp3+HiEwgDQ3qO3eU5xbwy+J SZD6d5orJQpLzTDmCe3hPWDOsdhkbgdbNYztuw5U4lYBtFSCaBwxnv0iMRwfglMSSUCD wQRheQ9SOOjtw6seZCxpNqt8qtdFtt3qOtlPmgxT2KVSok6qA8hS4NUh7j2XoxPVt0vP cOwivJR5JMyojK6WfH5QJV8EYEFSMcVKnyNGf29VVLuz/Z+CuYuvt1wGIXovFzN/30Td Ms2EwDBA+lRfkhOKTmKngAs1Z/+neW5XUhoJ0l8thT9+WW4CXtqbyAOAiLjPYtLadWF8 I8uA== X-Gm-Message-State: AOAM533ZkByK2Hp0AWjY2xh0uIFyJH6h03vXohGd51+igU94t2uzTS+0 g5bSLQyYF5ET+b1BZzsPdZiKMw== X-Received: by 2002:a9d:410:: with SMTP id 16mr1448961otc.315.1607040376660; Thu, 03 Dec 2020 16:06:16 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id m81sm241191oib.37.2020.12.03.16.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 16:06:15 -0800 (PST) Date: Thu, 3 Dec 2020 18:06:13 -0600 From: Bjorn Andersson To: Vinod Koul Cc: Stephen Boyd , Vivek Aknurwar , Andy Gross , Michael Turquette , Rob Herring , Taniya Das , 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: References: <20201203070241.2648874-1-vkoul@kernel.org> <20201203070241.2648874-6-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201203070241.2648874-6-vkoul@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Regards, Bjorn > + regmap_update_bits(regmap, 0x52008, BIT(20), BIT(20)); > + regmap_update_bits(regmap, 0x52008, BIT(21), BIT(21)); > + regmap_update_bits(regmap, 0x52008, BIT(27), BIT(27)); > + > + return qcom_cc_really_probe(pdev, &gcc_sm8350_desc, regmap); > +} > + > +static struct platform_driver gcc_sm8350_driver = { > + .probe = gcc_sm8350_probe, > + .driver = { > + .name = "sm8350-gcc", > + .of_match_table = gcc_sm8350_match_table, > + }, > +}; > + > +static int __init gcc_sm8350_init(void) > +{ > + return platform_driver_register(&gcc_sm8350_driver); > +} > +subsys_initcall(gcc_sm8350_init); > + > +static void __exit gcc_sm8350_exit(void) > +{ > + platform_driver_unregister(&gcc_sm8350_driver); > +} > +module_exit(gcc_sm8350_exit); > + > +MODULE_DESCRIPTION("QTI GCC SM8350 Driver"); > +MODULE_LICENSE("GPL v2"); > -- > 2.26.2 >