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: 9522655 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 320796043A for ; Wed, 18 Jan 2017 05:50:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 208DA28517 for ; Wed, 18 Jan 2017 05:50:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14D0D28581; Wed, 18 Jan 2017 05:50:54 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 9711D28517 for ; Wed, 18 Jan 2017 05:50:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751199AbdARFux (ORCPT ); Wed, 18 Jan 2017 00:50:53 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34199 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbdARFuw (ORCPT ); Wed, 18 Jan 2017 00:50:52 -0500 Received: by mail-pf0-f194.google.com with SMTP id y143so356976pfb.1; Tue, 17 Jan 2017 21:50:52 -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=XmuuZPyUeDoA3VmiTLOU0JJlNLxtsu8t7NhSUVLwoMpw1tqzFpmXYDqarzprsB/m2Y I7/v5Exjj5fP9BeJa5slTfCKlUJ/1kg/Cst6hNUjrvIQpGKvDptUerguQzcCnDGXzywf Q3XsRjSNU8hR1kcoUXM6wYVdEGypWkGoqln6f0NBH6tzBuqQVA4JB+DqVxpmEkSlWoYP p8f61JkVailyhIj4sMMWmDNhLzTY45ziYFNVwkdNps6/MfdegXKvpxZcKuBBiVFaTZsu 3wLGz8EHCiOku3d+sfijf27EOyYmTVl64LmhSGrdkh8KGJarjSG/66wyvPsne3PI82Sw 0uXQ== X-Gm-Message-State: AIkVDXLz2F8oVPcFidQw/Cqtvh03IZx5WV15ITYdjz018r/YOw6QfzvuVyQvqKqPtOCcSQ== 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 Cc: linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, zhangqing@rock-chips.com, zhengxing@rock-chips.com, Jacob Chen 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> 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 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;