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: 69491 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1922724qgf; Tue, 7 Jun 2016 04:21:58 -0700 (PDT) X-Received: by 10.107.169.67 with SMTP id s64mr27856602ioe.19.1465298518471; Tue, 07 Jun 2016 04:21:58 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zf8si4676716pab.235.2016.06.07.04.21.56; Tue, 07 Jun 2016 04:21:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754904AbcFGLVw (ORCPT + 31 others); Tue, 7 Jun 2016 07:21:52 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:37600 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754694AbcFGLVK (ORCPT ); Tue, 7 Jun 2016 07:21:10 -0400 Received: by mail-wm0-f50.google.com with SMTP id k204so64391708wmk.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=d3Ku/gbgetcCWKwtpCVXcD79iVaEr7umPfh9knv85KDHUhVY2aCYx9I/3nDfu39Iis 5UkZ3+2B1x6YQzqJ/AOGsapFc4FrB4QFM6jHc1+NcweZm6CPMkS3GDT17L5T2PWjr4FM 4BVTZFH/fMgzFBJBZYFaBKi1zXCe5bJOk9M8shtSO+rLJqUCG9nvjU7EP+tSY/qihIvJ CM8G00ldqj9M8JKOPnqEl6j3quZwnpXY17DYV/rOhldFl9mJRrCUHzeunRmTp51pxnzh laDO3EEm9DQj2O5VJ9jRpAFsyZxdV+u3VzSYJe10zUqNKtGhenoiQ9ddTT3aBSbdM9qF VNsA== X-Gm-Message-State: ALyK8tJkrXjhoOD4dFWe+kytnUaCOVOCwVLN70dWrtocfQqapRrxvlQjYG0ZUFh5wWqMAcS6 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.8.3 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 = , + , + , + , + ; }; };