From patchwork Wed Jan 11 01:26:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 9509013 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 511536075F for ; Wed, 11 Jan 2017 01:26:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 439C3285B7 for ; Wed, 11 Jan 2017 01:26:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37EDB285C8; Wed, 11 Jan 2017 01:26:53 +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 16052285B7 for ; Wed, 11 Jan 2017 01:26:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760857AbdAKB0u (ORCPT ); Tue, 10 Jan 2017 20:26:50 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36189 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754822AbdAKB0t (ORCPT ); Tue, 10 Jan 2017 20:26:49 -0500 Received: by mail-pf0-f194.google.com with SMTP id b22so14876303pfd.3; Tue, 10 Jan 2017 17:26:49 -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; bh=qiSk+3mTCaLgsWciPJlaHZqg9x1bQVB6Irjkm/gU99c=; b=th3MGZ6NR3JmweCVZoxfQ5UXoIwadSDrBU2ZIQRXOF8aQc5nc1/pXvGxUSSEtXaAkd dZ4iTVxoXGWlLWjlntA63VdM70VVXS7RhRDeQOEssFVM7R6BnBPfRrSRlPdkEdUniaj7 pC/8Y/dIe4R8dvY+s9BF0T6MSHW4iNkd3uoqDUaaF6+xXjmzf1gaiq05SQGDeBwOW++v IsArQwUo9iTZuzRg9c8IdWWJ3366WQtHsnDeaXgM44N+TRhjh+oOgcMe8H5F9Wwx0nb5 M+pEZKZ/LUvPjDiH+uAIa/EXqeWSfbTn7NWU0YmgsImsB5wf86F2YC7eeHT2AU/hmKUx Y35Q== X-Gm-Message-State: AIkVDXKFg05RKC9i+PRi0dwdlyvt7vpYtSOMNVMy/CjxLH2hbt1AeWNoIhDNknedbdBaQA== X-Received: by 10.98.25.205 with SMTP id 196mr7278280pfz.46.1484098008628; Tue, 10 Jan 2017 17:26:48 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id m12sm8519019pfg.92.2017.01.10.17.26.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Jan 2017 17:26:47 -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] clk: rockchip: rk3288: make aclk_vio1_niu a critical clock Date: Wed, 11 Jan 2017 09:26:32 +0800 Message-Id: <1484097992-9118-1-git-send-email-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.7.4 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 According to the pd blocks, VIO1_NIU is required by RGA,ISP and VOP1. Then at least one VIO_NIU should be turned on to supply eDP, HDMI, MIPI. If eDP,HDMI,MIPI is inited early than VOP or RGA is inited early than VOP1, system will hang. So make aclk_vio1_niu a critical clock and turn it on at all times. Signed-off-by: Jacob Chen --- drivers/clk/rockchip/clk-rk3288.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index f071c24..59ee244 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -815,6 +815,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = { static const char *const rk3288_critical_clocks[] __initconst = { "aclk_cpu", "aclk_peri", + "aclk_vio1_niu", "hclk_peri", "pclk_pd_pmu", };