From patchwork Sun Jun 12 09:48:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhengxing X-Patchwork-Id: 9171471 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 DB9FF60869 for ; Sun, 12 Jun 2016 09:49:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCA5626490 for ; Sun, 12 Jun 2016 09:49:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0A6827C0C; Sun, 12 Jun 2016 09:49:17 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 6BCE026490 for ; Sun, 12 Jun 2016 09:49:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702AbcFLJsz (ORCPT ); Sun, 12 Jun 2016 05:48:55 -0400 Received: from regular1.263xmail.com ([211.150.99.130]:35285 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752549AbcFLJsw (ORCPT ); Sun, 12 Jun 2016 05:48:52 -0400 Received: from zhengxing?rock-chips.com (unknown [192.168.167.84]) by regular1.263xmail.com (Postfix) with SMTP id 7744AB1C9; Sun, 12 Jun 2016 17:48:37 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id ED7012399A; Sun, 12 Jun 2016 17:48:31 +0800 (CST) X-RL-SENDER: zhengxing@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: zhengxing@rock-chips.com X-UNIQUE-TAG: <64c138657eeb401adcce9665f54848ef> X-ATTACHMENT-NUM: 0 X-SENDER: zhengxing@rock-chips.com X-DNS-TYPE: 0 Received: from localhost.localdomain (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 28608X15BP9; Sun, 12 Jun 2016 17:48:33 +0800 (CST) From: Xing Zheng To: heiko@sntech.de Cc: dianders@chromium.org, elaine.zhang@rock-chips.com, huangtao@rock-chips.com, briannorris@chromium.org, Xing Zheng , Yakir Yang , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: rockchip: add pclk_vio_grf to critical clock on the RK3399 Date: Sun, 12 Jun 2016 17:48:33 +0800 Message-Id: <1465724913-14553-1-git-send-email-zhengxing@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 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 The pclk_vio_grf supply power for GRF IOs, if it is disabled, will cause abnormal operation of the GRF. The clock tree of the pclk_vio like this: | --> pclk_vio_grf ... pclk_vio | --> pclk_mipi_dsi1 | --> pclk_mipi_dsi0 and the pclk_mipi_dsi0 and pclk_mipi_dsi1 don't have the flag CLK_IGNORE_UNUSED, and they will be disabled by clk_disable_unused when startup: clk_disable_unused --> clk_disable_unprepare --> clk_disable --> clk_core_disable(core->parent) then, the pclk_vio_grf also is disabled. Therefore, we need to add pclk_vio_grf to critical clock and avoid to disable pclk_vio and pclk_vio_grf. Tested-by: Yakir Yang Signed-off-by: Yakir Yang Signed-off-by: Brian Norris Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index b6742fa..7ecb12c3 100644 --- a/drivers/clk/rockchip/clk-rk3399.c +++ b/drivers/clk/rockchip/clk-rk3399.c @@ -1485,6 +1485,7 @@ static const char *const rk3399_cru_critical_clocks[] __initconst = { "gpll_hclk_perilp1_src", "gpll_aclk_perilp0_src", "gpll_aclk_perihp_src", + "pclk_vio_grf", }; static const char *const rk3399_pmucru_critical_clocks[] __initconst = {