From patchwork Thu Jul 20 04:48:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 9853779 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 6979960392 for ; Thu, 20 Jul 2017 04:50:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54D4728737 for ; Thu, 20 Jul 2017 04:50:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 498E928747; Thu, 20 Jul 2017 04:50:44 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CDA3228737 for ; Thu, 20 Jul 2017 04:50:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=CfM/aTHNEz/KFr1DfBq/hVovL9vMdjKdDDIrUlN2uGc=; b=FGb3xXG2imfCpb3d7Bsfq8APv7 ID2EuvO42YGuZU4oJviTFMMQxAy2GVMIDEdVKxGkoWdfE8VOp9mG0+DkEM2Ivj7wH/hab50tiOF8S JH55rDjUqhtW6JShedBvMej4Mg/zrbSVB8vlsKE0GZYzCoMSZyYHL5LSmhX4hqKMFHzi7AscAQHN8 kqyIhabLwTUd54mgbfE+tZojKo9X5lZ1zxfNx91P9aTpfFsHzL7SXvvNcN/R0zNJs22QMZrcrtQ16 1uuXpMWK7iSj12gwL5erMSonzr0rSu75ovGHGOej+0S6xLfT7EKb4+qepDPS6Wdt5ZaS1Nl4bM87E Xw+U2vAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dY3Q7-00089k-9i; Thu, 20 Jul 2017 04:50:39 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dY3Ok-0005kd-OU for linux-arm-kernel@lists.infradead.org; Thu, 20 Jul 2017 04:49:19 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 127C660FF5; Thu, 20 Jul 2017 04:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1500526137; bh=NS6fNQzq+SkgKtpneb1BL0dnguy9zAt27KP06wIo990=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AHq5LMI6uFnX5BUsQXyrTbV2//45HhyVL15G5Wpmf2+lM2rSPLpFhEVgK/1BZ/8tk yZbRQhQTdxIOGyBK395U1LEwDHdfh9mnX+jC/FzqCx2qHFTxMrEe/+lx5jtBWdAq8h Fz5gF6tM5SUiVCWtnfpJ6spiGd/Dn9jtI/6AIudM= Received: from blr-ubuntu-173.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (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 1060161220; Thu, 20 Jul 2017 04:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1500526135; bh=NS6fNQzq+SkgKtpneb1BL0dnguy9zAt27KP06wIo990=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VYmEKOQhUfJwk9/VhC8J0IGWDU+rw9WAL7NAFGSfdcZJfc7kAM2+EIW5NIFAzguoO ntHLQvShwEHP6Ysh7t5zjhiBA8bOWKBuAeayXjJQtgW9BKxRFCuuIqzjQmPmBKF8xo pQAwUdRB+OJw2UDQVdQfjSzxW7YyuRiI78LmdGXE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1060161220 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 Subject: [PATCH v2 4/5] clk: qcom: gcc-msm8996: Mark gcc_mmss_noc_cfg_ahb_clk as a critical clock Date: Thu, 20 Jul 2017 10:18:18 +0530 Message-Id: <1500526099-9935-5-git-send-email-rnayak@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1500526099-9935-1-git-send-email-rnayak@codeaurora.org> References: <1500526099-9935-1-git-send-email-rnayak@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170719_214915_627747_EA898B75 X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rajendra Nayak , linux-arm-msm@vger.kernel.org, stanimir.varbanov@linaro.org, vivek.gautam@codeaurora.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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, }, },