From patchwork Tue Mar 21 06:15:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 9636047 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 09150601E9 for ; Tue, 21 Mar 2017 06:16:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF306279E0 for ; Tue, 21 Mar 2017 06:16:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E35DC27CEA; Tue, 21 Mar 2017 06:16:39 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 728CB279E0 for ; Tue, 21 Mar 2017 06:16:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756499AbdCUGQj (ORCPT ); Tue, 21 Mar 2017 02:16:39 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42534 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756448AbdCUGQi (ORCPT ); Tue, 21 Mar 2017 02:16:38 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8299460D37; Tue, 21 Mar 2017 06:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1490076949; bh=NS6fNQzq+SkgKtpneb1BL0dnguy9zAt27KP06wIo990=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G7iSHJIqv+SlS6zkRxCvToY0o931vpSzQmAq+M5lC6FIhyMZNq1Hc6L1EVZHaysDR qzEcphl2obPwIl/2ObMriY3oZP71Lix2iC7iT8ki4nsiXGklakftUNYDxTye01YFpw fOedEYXBq6rEvU0tpJwzcJRubYAYSt08//X4j/FI= Received: from blr-ubuntu-173.qualcomm.com (unknown [202.46.23.61]) (using TLSv1.1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7637160D0A; Tue, 21 Mar 2017 06:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1490076948; bh=NS6fNQzq+SkgKtpneb1BL0dnguy9zAt27KP06wIo990=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h/CvJ2fUVojDZVxlxsAXb/RGDja6l09rTfDprEMlQW+3621ejKpdGIUBmMiEXdCTK 5YPKSILcnSqQQTuDBIigzM/jLutm+nAiwUKPQ6zGUD8+hjjWv5P1fZIMKXfNJkqoII GyhUtJiJOvqdvzSI5A0dmkJnXVXBu9mV1k3vl0I0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7637160D0A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rnayak@codeaurora.org From: Rajendra Nayak To: sboyd@codeaurora.org, mturquette@baylibre.com Cc: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rajendra Nayak Subject: [PATCH 4/5] clk: qcom: gcc-msm8996: Mark gcc_mmss_noc_cfg_ahb_clk as a critical clock Date: Tue, 21 Mar 2017 11:45:22 +0530 Message-Id: <1490076923-20194-5-git-send-email-rnayak@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490076923-20194-1-git-send-email-rnayak@codeaurora.org> References: <1490076923-20194-1-git-send-email-rnayak@codeaurora.org> 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 we have gcc_mmss_noc_cfg_ahb_clk marked with a CLK_IGNORE_UNUSED. While this can prevent it from being disabled while its unused, it does not prevent it from being disabled when a child derived from the clock calls an explicit enable/disable. Mark this with a CLK_IS_CRITICAL and remove the CLK_IGNORE_UNUSED flag so its never disabled. Signed-off-by: Rajendra Nayak --- drivers/clk/qcom/gcc-msm8996.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c index 8abc200..8872985 100644 --- a/drivers/clk/qcom/gcc-msm8996.c +++ b/drivers/clk/qcom/gcc-msm8996.c @@ -1333,7 +1333,7 @@ enum { .name = "gcc_mmss_noc_cfg_ahb_clk", .parent_names = (const char *[]){ "config_noc_clk_src" }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, .ops = &clk_branch2_ops, }, },