Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp206642pxu; Fri, 4 Dec 2020 00:56:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBbrZMrBQiecH0xq7T2I5vKyMqKnUmdELBuEnyCE6lmUSkTlYpSeBpxywqWgZ0EqXEuydw X-Received: by 2002:a17:907:373:: with SMTP id rs19mr4471237ejb.298.1607072182508; Fri, 04 Dec 2020 00:56:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607072182; cv=none; d=google.com; s=arc-20160816; b=In5CUPNLmIZ+pcNih8BTBwmbc51St+cTWXog42SMj5gjIfgSjUHduy0StTJT8zcD4Y I6tfLpA7nToTQN7WI9vhCa32rMHxiXk2ol5De/uVL8ZLtV2PuQu43FoOC3nGRVr9L3qq 3BEj4EZ97TNj2R4gY/vp3WcsfHtrrw7E6mfUPVAv98xzMNLgH8Fvoxny5hoAvdYx7H/Y NtS5YYFsLdfgMUAqXY68kn5splfs5ZmyZNuM4TZ5k0ev8YLBpcapIrmcHaDMi4vtOzI1 EbMg6hGLvIPhCg3ddbLodp5SMJ27R7b4WcJI9WQ33SiwV0V9hAhfNO6MeX7q4BgOcpFb 8SqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=KDVVzbG9GvJL/tCyDceYZiD1rBmyxebfv3YnVVi8et4=; b=LmnbGCLCt4ZKMKXkHQEqajJ6MKd0QP052qG7kF4kNPTHi/NP+08KzUvG+a1jcvZpoD tZg7skkUMPazbYtH6IuAXBEri/E6E+GKB1gRVOyisVn55MzuO/y91zhta9FIJnpfDt2y kqy86bHm1QnhxrLQtq0Dz7uHNdM3Ec4+htXaOZD2PjL8IDAA6BW1n3xfynKrPimWdDz5 FhoO0Ha+mc/gQT3IakCfEESdBYfCwEsuuijaXN6yCrH3MxDDclaLB7aA2lkySFFDeoIo oBqBAb+xZZEPzSO/uiWTnrvjbkzXay8OqcGZxxlWWdoDbDjCem91VgxiGeEXdQcUaAH1 mXQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=sV3mYiBE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si2486711edh.74.2020.12.04.00.55.59; Fri, 04 Dec 2020 00:56:22 -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=@mg.codeaurora.org header.s=smtp header.b=sV3mYiBE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729349AbgLDIvy (ORCPT + 99 others); Fri, 4 Dec 2020 03:51:54 -0500 Received: from m43-15.mailgun.net ([69.72.43.15]:39553 "EHLO m43-15.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729338AbgLDIvy (ORCPT ); Fri, 4 Dec 2020 03:51:54 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1607071895; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=KDVVzbG9GvJL/tCyDceYZiD1rBmyxebfv3YnVVi8et4=; b=sV3mYiBE6tNik0y/kZX17V5hBz2FoQyTmBOVvP2g3aRliUKIkDTKgfoobyKRa+QHdbFSHY/x EPCeShAiLC6zDDCyIg4Xee7lUtvogzMyU8W9v3MgDjK6IULfiWdv7xFYChg2rOsRjIeuHoAA 2vS+G7yswS9VBpglQg6fFL/VHLY= X-Mailgun-Sending-Ip: 69.72.43.15 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 5fc9f87aaac9455097f0b38a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 04 Dec 2020 08:51:06 GMT Sender: tdas=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6B5E7C43464; Fri, 4 Dec 2020 08:51:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.0.104] (unknown [49.204.182.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tdas) by smtp.codeaurora.org (Postfix) with ESMTPSA id A514CC433C6; Fri, 4 Dec 2020 08:50:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A514CC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=tdas@codeaurora.org Subject: Re: [PATCH 5/5] clk: qcom: gcc: Add clock driver for SM8350 To: Vinod Koul , Bjorn Andersson Cc: 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 References: <20201203070241.2648874-1-vkoul@kernel.org> <20201203070241.2648874-6-vkoul@kernel.org> <20201204043502.GJ8403@vkoul-mobl> From: Taniya Das Message-ID: <302cf18a-080d-a521-8c7a-39c265fbceb8@codeaurora.org> Date: Fri, 4 Dec 2020 14:20:55 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201204043502.GJ8403@vkoul-mobl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinod, On 12/4/2020 10:05 AM, Vinod Koul wrote: > Hi Bjorn, > > 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. -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation. --