From patchwork Fri Aug 18 14:22:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 9909213 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7F23F602C8 for ; Fri, 18 Aug 2017 14:23:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D8D928CCB for ; Fri, 18 Aug 2017 14:23:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6257528CDC; Fri, 18 Aug 2017 14:23:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F094C28CCB for ; Fri, 18 Aug 2017 14:23:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572AbdHROWz (ORCPT ); Fri, 18 Aug 2017 10:22:55 -0400 Received: from mail-wr0-f172.google.com ([209.85.128.172]:37872 "EHLO mail-wr0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753123AbdHROWx (ORCPT ); Fri, 18 Aug 2017 10:22:53 -0400 Received: by mail-wr0-f172.google.com with SMTP id z91so62979347wrc.4 for ; Fri, 18 Aug 2017 07:22:52 -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; bh=q45ar+1SdL5XYME2vOfGBzjAYgSTYyONvrKw8jX+fcA=; b=U+cnowJ5xM51iolyC9Ms/PUJnCypIq3eQbM5HaKhxwwcpPVZu233iUWflA1PoCLZcG 8kiZyE9D6k+nwrsXCTUYgLlYsUvRCK/qQSpDVuAwmRoujKd9kW/DUIL+YigmL7w3sweC os7t26+4LmpftfLsAmvw9sSGPsGNwDazkHEvI= 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; bh=q45ar+1SdL5XYME2vOfGBzjAYgSTYyONvrKw8jX+fcA=; b=qxGbGwfq7gY/CFYqjJm0vUdaJvVpHADway4cUoN5RokDs1y1eHBd3j5p7+vBv+ZdAF mTfbCsWKAIgMR1WqJs0yVj34DhbsXjR4cjopXy/gQDTfEkEMKpS7PZKij3gzfTSUFQef EFJvpnh/az8LQBdRfCnMjrzDcTW/BVCPhK7CQOXxBvSgtdLO24NGKxaZSA+uUQU+NKdY CZVfa7egDcRhiivQhvSRfphtRc5B9YjtKOjCItbLDz7mqRm23XLQ35jeETLYI28crqJ+ SVh4qKPQnIV8uYe8yZADP7NIt0XCkdtqM4JMgSOmaeKAjjiN4/Xc9GckfjfxVSB2zRTB 8JXw== X-Gm-Message-State: AHYfb5iRblALR0z7XyIWF3cNmHuiyWA7MssZAH2yPBg+b7tjWRlLVuCA OGHcSUrQYaJt8mW+ X-Received: by 10.223.131.102 with SMTP id 93mr3568525wrd.54.1503066172223; Fri, 18 Aug 2017 07:22:52 -0700 (PDT) Received: from mms-0441.qualcomm.mm-sol.com ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id g18sm6886251wrg.69.2017.08.18.07.22.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Aug 2017 07:22:51 -0700 (PDT) From: Georgi Djakov To: sboyd@codeaurora.org Cc: mturquette@baylibre.com, robdclark@gmail.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH] clk: qcom: msm8916: Fix bimc gpu clock ops Date: Fri, 18 Aug 2017 17:22:50 +0300 Message-Id: <20170818142250.27867-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.13.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The clock bimc_gpu_clk_src is incorrectly set to use the shared rcg2 ops, which are for RCGs with child branches controlled by different CPUs. The result of the incorrect ops is that the GPU's PM runtime may leave this clock set at a very low rate. Fix this issue by using the correct rcg2 ops. Fixes: a2e8272f3f89 ("clk: qcom: Add MSM8916 gpu clocks") Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c index 2cfe7000fc60..3410ee68d4bc 100644 --- a/drivers/clk/qcom/gcc-msm8916.c +++ b/drivers/clk/qcom/gcc-msm8916.c @@ -1176,7 +1176,7 @@ static struct clk_rcg2 bimc_gpu_clk_src = { .parent_names = gcc_xo_gpll0_bimc, .num_parents = 3, .flags = CLK_GET_RATE_NOCACHE, - .ops = &clk_rcg2_shared_ops, + .ops = &clk_rcg2_ops, }, };