From patchwork Wed Jan 18 05:42:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 9522639 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 A5ABF601C3 for ; Wed, 18 Jan 2017 05:43:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92EDF28517 for ; Wed, 18 Jan 2017 05:43:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85D9C28581; Wed, 18 Jan 2017 05:43:50 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6BDEA28517 for ; Wed, 18 Jan 2017 05:43:49 +0000 (UTC) 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 1cTj2D-0005iZ-2U; Wed, 18 Jan 2017 05:43:49 +0000 Received: from mail-pg0-f65.google.com ([74.125.83.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTj1w-00056o-A7; Wed, 18 Jan 2017 05:43:34 +0000 Received: by mail-pg0-f65.google.com with SMTP id 204so426863pge.2; Tue, 17 Jan 2017 21:43:10 -0800 (PST) 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=PU6hyI8+fP6xORnqH2lTJIg4nFisaYSzTwIZQSsy/lM=; b=mE23Fj1xwMQ9Ov2iVyai+GtrF/3T6y9NCQDT4DSI/LgCbTJy7TS83osB/kQsxKYe2x 23YEsGdaoOU63AK2fDLlBjvKEhZBcOIAW5Zfp1MRnTmdTAuC9dxMvkKT59EL4Fa1tCBY KIAQVIOw81fXZFm1cJmheyAMm9lR7LlZz5SqtfCetJzRIS6X5y4cEeQqFshukg1NHveH v4Kz+Pg/FP5TbPZOJHWJ2pzPGjvljCbOuJaeRiz74Mez7b+ZXaw6eTZMGWGDSh31wdjB u8itmXpjXw/3Va0ehHfxlqp+s1B/b9c73z+RQ5SGh7yHeJc5RVgoUmfE80PdezOtAaSe GBRA== X-Gm-Message-State: AIkVDXKldCWA+Yi9T05NAguAD89TqP60AbyZJpv5mzgO0e0KLXm+4jtXesUBrIzZgLbs2g== X-Received: by 10.98.13.18 with SMTP id v18mr1806410pfi.62.1484718190455; Tue, 17 Jan 2017 21:43:10 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id e6sm60280919pgf.4.2017.01.17.21.43.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jan 2017 21:43:09 -0800 (PST) From: Jacob Chen To: heiko@sntech.de, mturquette@baylibre.com, sboyd@codeaurora.org Subject: [PATCH v2 3/3] clk: rockchip: rk3288: make all niu clocks critical Date: Wed, 18 Jan 2017 13:42:40 +0800 Message-Id: <1484718161-27702-3-git-send-email-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484718161-27702-1-git-send-email-jacob-chen@iotwrt.com> References: <1484718161-27702-1-git-send-email-jacob-chen@iotwrt.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170117_214332_407399_D55B9A33 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zhengxing@rock-chips.com, zhangqing@rock-chips.com, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jacob Chen , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP NIU clocks are related to the interconnect and it's important to other blocks. Since we don't have a driver to handle it, we should always enable it to avoid casually close. Make all of them critical,so that we don't have to each clock on its own once things break. Signed-off-by: Jacob Chen --- drivers/clk/rockchip/clk-rk3288.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 3d02aa2..c50386c 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -808,8 +808,15 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = { static const char *const rk3288_critical_clocks[] __initconst = { "aclk_cpu", "aclk_peri", + "aclk_peri_niu", + "aclk_vio0_niu", + "aclk_vio1_niu", + "aclk_rga_niu", "hclk_peri", + "hclk_vio_niu", + "pclk_alive_niu", "pclk_pd_pmu", + "pclk_pmu_niu", }; static void __iomem *rk3288_cru_base;