From patchwork Sun Aug 23 09:32:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 7057201 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 294AD9F305 for ; Sun, 23 Aug 2015 09:35:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E94420689 for ; Sun, 23 Aug 2015 09:35:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8C9EA2067A for ; Sun, 23 Aug 2015 09:35:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZTReF-00084c-3K; Sun, 23 Aug 2015 09:33:07 +0000 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZTReB-00081f-Du; Sun, 23 Aug 2015 09:33:05 +0000 Received: by wicja10 with SMTP id ja10so47267322wic.1; Sun, 23 Aug 2015 02:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=TEBx+bgj6uHeF6OlxEOuUbC59G1gTmADzep+UBnP0x0=; b=Y1DbyOUtXVfiE6EkJJvPUCvKbu+2l1Zs+Dn/vCbLDkMf8EdJ6nWIZ0rPE7D8xg3YOC 66InvrPuEVoXmlUakBVXW5roTsWo1Osp4vZMcpcDd2ZgU3PvLPMsnHEWf33J/YLpmPTM DklZENuSQ1KvYwrbqMHoiznyWkqIXoinLlHbwCM3jhxOw6kz6tM/qHR+UA8eQ3TwsgyQ 1d6oO27CY/V891pw0LD/iM7PrVUc5eVea8aJpECrumNPo47cLZgDlprQ/1OJxGHUFsfY 4R0iJspYWPRKkGXkes33Gyc1eXzGnwLQyfgwtgA3spRRmpMyVWS588dxK2e3vOv4zxEM 1Q3w== X-Received: by 10.194.117.199 with SMTP id kg7mr29239994wjb.49.1440322360620; Sun, 23 Aug 2015 02:32:40 -0700 (PDT) Received: from localhost.localdomain (i19-les01-ntr-176-186-2-137.sfr.lns.abo.bbox.fr. [176.186.2.137]) by smtp.gmail.com with ESMTPSA id v9sm17877787wjq.41.2015.08.23.02.32.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Aug 2015 02:32:39 -0700 (PDT) From: Romain Perier To: heiko@sntech.de Subject: [PATCH v2] clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188 Date: Sun, 23 Aug 2015 11:32:37 +0200 Message-Id: <1440322357-2621-1-git-send-email-romain.perier@gmail.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150823_023303_714758_7EFD3D84 X-CRM114-Status: UNSURE ( 8.56 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, mturquette@baylibre.com, sboyd@codeaurora.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that the rockchip clock subsystem does clock gating with GPIO banks, these are no longer enabled once during probe and no longer stay enabled for eternity. When all these clocks are disabled, the parent clock pclk_peri might be disabled too, as no other child claims it. So, we need to add pclk_peri to the critical clocks. Signed-off-by: Romain Perier Tested-by: Michael Niewoehner --- changes in v2: - Improved commit messages - Added "Tested-by" from Michael Niewoehner, as he tested v1 and no code changed drivers/clk/rockchip/clk-rk3188.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c index bf20214..839a22a 100644 --- a/drivers/clk/rockchip/clk-rk3188.c +++ b/drivers/clk/rockchip/clk-rk3188.c @@ -717,6 +717,7 @@ static const char *const rk3188_critical_clocks[] __initconst = { "aclk_peri", "hclk_peri", "pclk_cpu", + "pclk_peri", }; static void __init rk3188_common_clk_init(struct device_node *np)