From patchwork Tue Jun 7 11:19:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 9160589 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 7C2F860572 for ; Tue, 7 Jun 2016 11:22:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A05C25EF7 for ; Tue, 7 Jun 2016 11:22:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EA08281D2; Tue, 7 Jun 2016 11:22:16 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable 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 19AEB2793B for ; Tue, 7 Jun 2016 11:22:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754691AbcFGLVI (ORCPT ); Tue, 7 Jun 2016 07:21:08 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:37601 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754420AbcFGLVF (ORCPT ); Tue, 7 Jun 2016 07:21:05 -0400 Received: by mail-wm0-f43.google.com with SMTP id k204so64391723wmk.0 for ; Tue, 07 Jun 2016 04:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=q98TgXHyGI56jEZmjXeimU3U3K/21qxQYsA1iGYaPgw=; b=JyzWZgf4jgIJ2eGSxzmfyKlBDTaNCs3o2I8Fkh3u0V8WIeGpY1pLh/BVOU/CYnZpBT LO2B2XdT83MiAkLPWtx2yaE/jKcoKSIk8mPusGsaXeNWcF7gEM/huk3uqZlPRe+OXoHv q6j8JumLEab3lhRXJ/A+eq+GAq/YIa03oyDAg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=q98TgXHyGI56jEZmjXeimU3U3K/21qxQYsA1iGYaPgw=; b=VD8TmWz0PIgVK3hlsbDWGwW076Iew+pRUmFfU4hlxYJvMiLOusRYVXmIMoRaxVbSj6 g2m+0LhWu/WlOJzL2m+kLgV694MTxIupFIpVaLG1lW3QPRN7qzVbs8PguzQmoaHWAb5Q 1OTb1U1A3E1JFqxmdw3xyUmOhyOkjPqB5dsxX0Axvpr75GmQSxgeoCBRiUfY+3lkRIRC wONv/C6WY/Y44fm2nHHvZy2FI4xRH1hN7rFB0gqA9AgXm3HMHPekgbHQOWSEj5wZBzd4 u6vc5N6XBXEbWmnTZGcviAEIDMf9tQQW+Y6Bf5KwLlDOdiDEF7+1gggd6DUkrgBIfXwH tjng== X-Gm-Message-State: ALyK8tK8KDqRv5+5qhc2htvT3cn0pe5WcFllfM/XZgTIMD+Hdkae6VHaSr8YlFfv3bOv2qIA X-Received: by 10.194.84.74 with SMTP id w10mr20163377wjy.118.1465298464357; Tue, 07 Jun 2016 04:21:04 -0700 (PDT) Received: from localhost.localdomain (host81-129-171-215.range81-129.btcentralplus.com. [81.129.171.215]) by smtp.gmail.com with ESMTPSA id t199sm14466371wmt.11.2016.06.07.04.21.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 04:21:03 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, maxime.coquelin@st.com, patrice.chotard@st.com, mturquette@baylibre.com, sboyd@codeaurora.org, broonie@kernel.org, linux-clk@vger.kernel.org, linux-spi@vger.kernel.org, Lee Jones Subject: [PATCH 5/6] ARM: sti: stih410-clocks: Identify critical clocks Date: Tue, 7 Jun 2016 12:19:29 +0100 Message-Id: <20160607111930.10375-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160607111930.10375-1-lee.jones@linaro.org> References: <20160607111930.10375-1-lee.jones@linaro.org> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Lots of platforms contain clocks which if turned off would prove fatal. The only way to recover is to restart the board(s). This driver takes references to clocks which are required to be always-on. The Common Clk Framework will then take references to them. This way they will not be turned off during the clk_disabled_unused() procedure. In this patch we are identifying clocks, which if gated would render the STiH410 development board unserviceable. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih410-clock.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/stih410-clock.dtsi b/arch/arm/boot/dts/stih410-clock.dtsi index d1f2aca..fd50496 100644 --- a/arch/arm/boot/dts/stih410-clock.dtsi +++ b/arch/arm/boot/dts/stih410-clock.dtsi @@ -103,6 +103,7 @@ clocks = <&clk_sysin>; clock-output-names = "clk-s-a0-pll-ofd-0"; + clock-critical = <0>; /* clk-s-a0-pll-ofd-0 */ }; clk_s_a0_flexgen: clk-s-a0-flexgen { @@ -115,6 +116,7 @@ clock-output-names = "clk-ic-lmi0", "clk-ic-lmi1"; + clock-critical = ; }; }; @@ -129,6 +131,7 @@ "clk-s-c0-fs0-ch1", "clk-s-c0-fs0-ch2", "clk-s-c0-fs0-ch3"; + clock-critical = <0>; /* clk-s-c0-fs0-ch0 */ }; clk_s_c0: clockgen-c@09103000 { @@ -142,6 +145,7 @@ clocks = <&clk_sysin>; clock-output-names = "clk-s-c0-pll0-odf-0"; + clock-critical = <0>; /* clk-s-c0-pll0-odf-0 */ }; clk_s_c0_pll1: clk-s-c0-pll1 { @@ -204,6 +208,11 @@ "clk-clust-hades", "clk-hwpe-hades", "clk-fc-hades"; + clock-critical = , + , + , + , + ; }; };