From patchwork Sun Jul 4 02:40:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 470029 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2785026jao; Sat, 3 Jul 2021 19:40:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw3EcujHvY7wdaiLac2F/4j/OpNuZXlwsClfaP0rj3JOB5SNopyVR7X/8PyD2IknPfdCWe X-Received: by 2002:aa7:d911:: with SMTP id a17mr8193332edr.136.1625366453661; Sat, 03 Jul 2021 19:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625366453; cv=none; d=google.com; s=arc-20160816; b=V2gJ8PfABh726vejAQFS0fZYDWq7v4obWiIb9EU+CFxZ7ukqUPOWzR/u5EOhzWqtOD aZH4ldggE0g4/hJKg6auNPxbaPfmIUdJCWFf+gWas3G5bwqUGR71AoesQMEYhzM+zDdH JCa+sLFbND3+nsb5/hluD/2tFi4qxPz866EOTO8H3flGsOJD9Y0IcjIGhOk1pktLd5zz CLkpdHR8bdq1fdt2qCNUD5tB2tNvZYO6ZGvGew6cHQeLYH0QMPc5j0xllvCnSN/ArZlT bPm5dAeXVmJv4hX7Htbe/juKyGqAuBzjDiwiw6Kyj6kLwV63C+gItvhH0vCIIBSiymic pAiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=LGTpZpcq32N1ry1LRLwc7jq58V/cDLzcGUvKzTqnKL0=; b=jXtYRnfE2UC3XA457bUR3a0+J71Klm503k6DqfY2jZU4VYHqUULd3nEortwTwbLUXK D+ZQgWk581sfayyn4PX96wwcqJa8DBtGuB8LIJCN4SWKv6awjJByViBHoBhWfnN3qQJ3 CMV6/jJdzPpckWd43k1P42ZXpsewgC++4nrclWKbi0LqU4hYZwbnhf0StEw4/rtFKr8e 9QoWLvtaR3MsuJZm2hfXLWn8PcQQvkYkCRgfC4xlGTHx5GDc273s3OTJYu6l94UcL1xB njSClgxFZX2iENStl4acj/K8S33uYez4JOpNfGGJdaevPpMJQj9F4WYiBaMiIIlCdI0B Fonw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F83E1Q5H; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 s19si7656569ejj.534.2021.07.03.19.40.53; Sat, 03 Jul 2021 19:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=F83E1Q5H; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S229770AbhGDCnX (ORCPT + 7 others); Sat, 3 Jul 2021 22:43:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbhGDCnV (ORCPT ); Sat, 3 Jul 2021 22:43:21 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3262CC061762 for ; Sat, 3 Jul 2021 19:40:47 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id w22so9626130pff.5 for ; Sat, 03 Jul 2021 19:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LGTpZpcq32N1ry1LRLwc7jq58V/cDLzcGUvKzTqnKL0=; b=F83E1Q5H1nwJYdoExXJpnGKLhUHfJgiUg5f3KCJlnwZIHsFS8uG7I/BUOWqxbBHy7J nYJiJGRiVkVdtL4AuohjgJd7lg/F3Q8EstetwfzAK38CrFDd283EC15V9QFy+KwdU7tJ ThBQJlB1JEXY4gOygZw8BM/CEcbG/XwI3NVjG4rAnhthYRjUivKMWQY4U/WP0ErJ3VKb T5JN1AhNaByyK99PN3u0vowEkrEp0wCtCIWvzPVeZNIaeJAQcIGUTH3BVcLodQjTQzoS kwsGuO0qx9lEGiIqn2h50mYapkQpBthPZ4JhhLKySWs0R0RZ4oMVIoCbE8NIBb4yVJhY EJpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LGTpZpcq32N1ry1LRLwc7jq58V/cDLzcGUvKzTqnKL0=; b=mX1YdxhLd3XSKLi/2GylA6zTCl020dRH3DXJmmzb4SiYW7oevbQgmOOil+fE1FMxX8 BMg2SUk9LieAUtPaU+XG6HywtK05M3vYUAubuhBZV9G33d7vwwil3sp+wTEv5CGP3x5O RNBwxmayZH92MgrOwr3mg885vcJkKawCJcY8BkGJg8UFv71EznnbwRfLWENRKUI1aqg2 PNLS8LcVZSVM0/Q1FBrsTt32HAudiqcQa6p57DZQaNbrDk1M5lrodW3HuaG3EKSeHT5h 4nQTBK7UFpEiSNeA/sTkOLwu0Mxae4YmA07JPop21eY/nMDstObNiIgRmpJao/U2c7k0 aRSg== X-Gm-Message-State: AOAM533dnGqkWnDiNrA+pboAgjnf7dADP1OQqcX3GpjPb/EtsVWMdLQc VU+hTAX2x8BSHKki03/6xhYDDw== X-Received: by 2002:a63:6cc:: with SMTP id 195mr8146533pgg.281.1625366446801; Sat, 03 Jul 2021 19:40:46 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id g17sm9394624pgh.61.2021.07.03.19.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jul 2021 19:40:46 -0700 (PDT) From: Shawn Guo To: Stephen Boyd Cc: Bjorn Andersson , Rob Herring , Sivaprakash Murugesan , Benjamin Li , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Shawn Guo Subject: [PATCH v2 1/4] clk: qcom: apcs-msm8916: Flag a53mux instead of a53pll as critical Date: Sun, 4 Jul 2021 10:40:29 +0800 Message-Id: <20210704024032.11559-2-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210704024032.11559-1-shawn.guo@linaro.org> References: <20210704024032.11559-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The clock source for MSM8916 cpu cores is like below. |\ a53pll --------| \ a53mux +------+ | |------------| cpus | gpll0_vote --------| / +------+ |/ So a53mux rather than a53pll is actually the parent clock of cpu cores. It makes more sense to flag a53mux as critical instead, so that when either a53pll or gpll0_vote is used by cpu cores, the clock will be kept enabled while the other can be disabled. Signed-off-by: Shawn Guo --- drivers/clk/qcom/a53-pll.c | 1 - drivers/clk/qcom/apcs-msm8916.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/clk/qcom/a53-pll.c b/drivers/clk/qcom/a53-pll.c index af6ac17c7dae..d6756bd777ce 100644 --- a/drivers/clk/qcom/a53-pll.c +++ b/drivers/clk/qcom/a53-pll.c @@ -70,7 +70,6 @@ static int qcom_a53pll_probe(struct platform_device *pdev) init.parent_names = (const char *[]){ "xo" }; init.num_parents = 1; init.ops = &clk_pll_sr2_ops; - init.flags = CLK_IS_CRITICAL; pll->clkr.hw.init = &init; ret = devm_clk_register_regmap(dev, &pll->clkr); diff --git a/drivers/clk/qcom/apcs-msm8916.c b/drivers/clk/qcom/apcs-msm8916.c index cf69a97d0439..d7ac6d6b15b6 100644 --- a/drivers/clk/qcom/apcs-msm8916.c +++ b/drivers/clk/qcom/apcs-msm8916.c @@ -65,7 +65,7 @@ static int qcom_apcs_msm8916_clk_probe(struct platform_device *pdev) init.parent_data = pdata; init.num_parents = ARRAY_SIZE(pdata); init.ops = &clk_regmap_mux_div_ops; - init.flags = CLK_SET_RATE_PARENT; + init.flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT; a53cc->clkr.hw.init = &init; a53cc->clkr.regmap = regmap;