From patchwork Fri Sep 1 00:47:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 9933227 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 BF30760309 for ; Fri, 1 Sep 2017 00:48:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2E0227480 for ; Fri, 1 Sep 2017 00:48:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7C4A27853; Fri, 1 Sep 2017 00:48:08 +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 5759827480 for ; Fri, 1 Sep 2017 00:48:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751310AbdIAArk (ORCPT ); Thu, 31 Aug 2017 20:47:40 -0400 Received: from mail-pg0-f41.google.com ([74.125.83.41]:38768 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751264AbdIAArg (ORCPT ); Thu, 31 Aug 2017 20:47:36 -0400 Received: by mail-pg0-f41.google.com with SMTP id b8so3493442pgn.5 for ; Thu, 31 Aug 2017 17:47:36 -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:in-reply-to:references; bh=9tlX9py6+5JGYCnPnqzXpCBjNuFuhKyG5e+xazqXeu4=; b=TBtRl8MwEhcGw0TIWlopcYkSsjKzoT5zy9Yyr6LRuMVZho6alKXAS5HU1B88WQGGZl 17qQi5iLl09T6L/d/jF9AXRqLOFGsySuzvVVtovxv3uoZmesMWJaAaR/ZDWxhMBG26LO XnM8TSyuOafEtXAJ5/qvO5LgXouR+iunhAIOA= 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:in-reply-to :references; bh=9tlX9py6+5JGYCnPnqzXpCBjNuFuhKyG5e+xazqXeu4=; b=E9DMz+STHIFXTRea2W7pYyGBUn/NobRZPxH9G8AyN8yRvGjRU7TctDFWexhQ9I5L97 p+bRET8Coqo7TMHJIZs+dZSKZkGhTiCoF6UZ+edmlFH67ZxEf5zCmF+sHZ2iVZp7uGFV xGZvwl6jwg7iauI92m48PQ/29i8I5h7hlj3SCRk6lcq+7Bjsepnlwa3G6Y34w5OwBT+c B6n223/GYxU58D4+cBGWNT4/E0/6r4rKiexmG+23VRdfhIMOl3b1yqreQ2EUoZ9I5ZyJ ru2AweO9zfB5g+52K+U459EbfrOXFY3qmU0pUmnM8SFSKcWMAP9GSL16driBTxhYQZzr VoTQ== X-Gm-Message-State: AHPjjUhGQ0+il3pJCCuMzPdc3Tf68eKrxY38JL3M/wBxN/LuIyHANYzX NW1nxezZ5Euh62Li X-Google-Smtp-Source: ADKCNb7S8QOBBYxXox1fPl+xD6m12tNiX6ppqWp3s1WKWBCdxhTldW+4ErR+LfJXnD5RcVSqbeVS7A== X-Received: by 10.99.186.73 with SMTP id l9mr350368pgu.178.1504226855723; Thu, 31 Aug 2017 17:47:35 -0700 (PDT) Received: from localhost.localdomain (li1068-205.members.linode.com. [106.184.3.205]) by smtp.gmail.com with ESMTPSA id b81sm1028422pfm.48.2017.08.31.17.47.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Aug 2017 17:47:34 -0700 (PDT) From: Leo Yan To: Wei Xu , Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd , Li Pengcheng , Zhangfei Gao , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: Leo Yan , Guodong Xu , Haojian Zhuang Subject: [PATCH 1/2] clk: hi6220: mark clock cs_atb_syspll as critical Date: Fri, 1 Sep 2017 08:47:14 +0800 Message-Id: <1504226835-2115-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504226835-2115-1-git-send-email-leo.yan@linaro.org> References: <1504226835-2115-1-git-send-email-leo.yan@linaro.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 Clock cs_atb_syspll is pll used for coresight trace bus; when clock cs_atb_syspll is disabled and operates its child clock node cs_atb results in system hang. So mark clock cs_atb_syspll as critical to keep it enabled. Cc: Guodong Xu Cc: Zhangfei Gao Cc: Haojian Zhuang Signed-off-by: Leo Yan --- drivers/clk/hisilicon/clk-hi6220.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/hisilicon/clk-hi6220.c b/drivers/clk/hisilicon/clk-hi6220.c index 4181b68..4742e8f 100644 --- a/drivers/clk/hisilicon/clk-hi6220.c +++ b/drivers/clk/hisilicon/clk-hi6220.c @@ -145,7 +145,7 @@ static struct hisi_gate_clock hi6220_separated_gate_clks_sys[] __initdata = { { HI6220_BBPPLL_SEL, "bbppll_sel", "pll0_bbp_gate", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x270, 9, 0, }, { HI6220_MEDIA_PLL_SRC, "media_pll_src", "pll_media_gate", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x270, 10, 0, }, { HI6220_MMC2_SEL, "mmc2_sel", "mmc2_mux1", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x270, 11, 0, }, - { HI6220_CS_ATB_SYSPLL, "cs_atb_syspll", "syspll", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x270, 12, 0, }, + { HI6220_CS_ATB_SYSPLL, "cs_atb_syspll", "syspll", CLK_SET_RATE_PARENT|CLK_IS_CRITICAL, 0x270, 12, 0, }, }; static struct hisi_mux_clock hi6220_mux_clks_sys[] __initdata = {