From patchwork Thu Apr 14 04:42:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 8831511 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 974599F3A0 for ; Thu, 14 Apr 2016 04:42:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF0692010E for ; Thu, 14 Apr 2016 04:42:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 01A362015A for ; Thu, 14 Apr 2016 04:42:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751030AbcDNEms (ORCPT ); Thu, 14 Apr 2016 00:42:48 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:36929 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750982AbcDNEmr (ORCPT ); Thu, 14 Apr 2016 00:42:47 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O5L02O58X33QOE0@mailout1.samsung.com>; Thu, 14 Apr 2016 13:42:39 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [203.254.230.47]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 84.67.04785.FBF1F075; Thu, 14 Apr 2016 13:42:39 +0900 (KST) X-AuditID: cbfee68e-f79d96d0000012b1-82-570f1fbfe832 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 83.4D.06699.FBF1F075; Thu, 14 Apr 2016 13:42:39 +0900 (KST) Received: from exypnos.sisodomain.com ([107.108.73.28]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O5L009C1X2YLF70@mmp1.samsung.com>; Thu, 14 Apr 2016 13:42:39 +0900 (KST) From: Alim Akhtar To: linux-arm-kernel@lists.infradead.org, s.nawrocki@samsung.com Cc: thomas.ab@samsung.com, k.kozlowski@samsung.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, sboyd@codeaurora.org, mturquette@baylibre.com, tomasz.figa@gmail.com Subject: [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock Date: Thu, 14 Apr 2016 10:12:52 +0530 Message-id: <1460608972-13878-1-git-send-email-alim.akhtar@samsung.com> X-Mailer: git-send-email 1.7.10.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t8zfd398vzhBjMmClm8fmFosenxNVaL jz33WC0u75rDZjHj/D4mi4unXC0Ov2lntfhxppvFomMZo8WqXX8YHbg83t9oZfe43NfL5LFz 1l12j81L6j36tqxi9Pi8SS6ALYrLJiU1J7MstUjfLoEr4/u6bYwF27grvj35x9TA+ISzi5GT Q0LARGJR62dWCFtM4sK99WxdjFwcQgIrGSU+Xn3BBlM069E3qMRSRommtgPsEM5PRokHHbfB 2tkEtCXuTt/C1MXIwSEi4CBxulUQpIZZ4BajxImLC8BqhAVCJO6cuwU2lUVAVWLryd2MIPW8 Au4SKyakQCxTlOh+NgFsmYTAPHaJdxNfsEPUC0h8m3yIBaReQkBWYtMBZoh6SYmDK26wTGAU XMDIsIpRNLUguaA4Kb3ISK84Mbe4NC9dLzk/dxMjJKz7djDePGB9iFGAg1GJh/fCGt5wIdbE suLK3EOMpkAbJjJLiSbnA6MnryTe0NjMyMLUxNTYyNzSTEmcN0HqZ7CQQHpiSWp2ampBalF8 UWlOavEhRiYO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nNRcSIAeT6qpbMC AAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200 clocks. These clocks are critical for accessing CMU_CCORE and CMU_FSYS0 blocks registers. Let these clocks to be enabled all the time. Signed-off-by: Alim Akhtar Reviewed-by: Krzysztof Kozlowski --- drivers/clk/samsung/clk-exynos7.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos7.c b/drivers/clk/samsung/clk-exynos7.c index ad68d46..03a82da 100644 --- a/drivers/clk/samsung/clk-exynos7.c +++ b/drivers/clk/samsung/clk-exynos7.c @@ -146,7 +146,7 @@ static struct samsung_pll_rate_table pll1460x_24mhz_tbl[] __initdata = { static struct samsung_gate_clock topc_gate_clks[] __initdata = { GATE(ACLK_CCORE_133, "aclk_ccore_133", "dout_aclk_ccore_133", - ENABLE_ACLK_TOPC0, 4, 0, 0), + ENABLE_ACLK_TOPC0, 4, CLK_IS_CRITICAL, 0), GATE(ACLK_MSCL_532, "aclk_mscl_532", "dout_aclk_mscl_532", ENABLE_ACLK_TOPC1, 20, 0, 0), @@ -539,7 +539,8 @@ static struct samsung_gate_clock top1_gate_clks[] __initdata = { ENABLE_SCLK_TOP1_FSYS11, 12, CLK_SET_RATE_PARENT, 0), GATE(CLK_ACLK_FSYS0_200, "aclk_fsys0_200", "dout_aclk_fsys0_200", - ENABLE_ACLK_TOP13, 28, CLK_SET_RATE_PARENT, 0), + ENABLE_ACLK_TOP13, 28, CLK_SET_RATE_PARENT | + CLK_IS_CRITICAL, 0), GATE(CLK_ACLK_FSYS1_200, "aclk_fsys1_200", "dout_aclk_fsys1_200", ENABLE_ACLK_TOP13, 24, CLK_SET_RATE_PARENT, 0),