From 3b14ab6fc0a43438f575b6abee1e26d96b92f403 Mon Sep 17 00:00:00 2001 From: Rahul Sharma Date: Thu, 17 May 2018 15:19:18 +0530 Subject: [PATCH] clk: msm: clock-mmss-8996: disable cache based clk rate Use flag CLKFLAG_NO_RATE_CACHE for RCG and branch clock for mdss_extpclk_clk used for HDMI interface. Using this flag will allow the clock framework to calculate rate again and not depend on the cached rates. Change-Id: I88f8924074a23e5a6fd48ce6243c7db89580109b Signed-off-by: Rahul Sharma --- drivers/clk/msm/clock-mmss-8996.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/msm/clock-mmss-8996.c b/drivers/clk/msm/clock-mmss-8996.c index 91c871cae225..30169d3f3a98 100644 --- a/drivers/clk/msm/clock-mmss-8996.c +++ b/drivers/clk/msm/clock-mmss-8996.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2016, 2018 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -1517,6 +1517,7 @@ static struct rcg_clk extpclk_clk_src = { .dbg_name = "extpclk_clk_src", .parent = &ext_extpclk_clk_src.c, .ops = &clk_ops_byte, + .flags = CLKFLAG_NO_RATE_CACHE, VDD_DIG_FMAX_MAP3(LOWER, 150000000, LOW, 300000000, NOMINAL, 600000000), CLK_INIT(extpclk_clk_src.c), @@ -2532,6 +2533,7 @@ static struct branch_clk mdss_extpclk_clk = { .dbg_name = "mdss_extpclk_clk", .parent = &extpclk_clk_src.c, .ops = &clk_ops_branch, + .flags = CLKFLAG_NO_RATE_CACHE, CLK_INIT(mdss_extpclk_clk.c), }, };