From patchwork Tue Apr 7 18:43:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 46844 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6987D20553 for ; Tue, 7 Apr 2015 18:44:21 +0000 (UTC) Received: by lamp14 with SMTP id p14sf14918876lam.3 for ; Tue, 07 Apr 2015 11:44:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=VuAjLRNxi0wnEOfhSCScoY2tIPWGVoIWV2o0K7wzRDM=; b=UiWfSoPVJ/RfpprfcJGtqSXqCXwyKMrZS+gczd2JyO+4pPGWrpTuflKqVsA2ZeI6uy 3PQR+0SOuZJUng9mxg+Dhx6n+aMTvM9Gkcr4QA03MOMIURcrMHeYRcbNZQCx0FdgGgKk IajUURKDY8HTaOFHtsVlelFv2DyrJ1ORIFJUz71HBTklUIuVmQx0sTYWHJzzEVWgIeVd Quxb9/KdEMOcYwF4MleQAUxnmNt71+TzhuZgn6B5p7qVShmo93KeF2KULebTrj3SDBbk g/ArngTx7v4j3FfLpvPlQ3IDVOQXxhAJ14KWZMJ1FQBCgbW+xw5vWlmaYKih9tZZgFDF bE3A== X-Gm-Message-State: ALoCoQkjiUY0H+6uDhw2vI8hP4ScfcA8wDL8olVjIgN8rvK4Er2waZdQa0ercZYCmUCZvf7f2K8B X-Received: by 10.112.42.236 with SMTP id r12mr4223888lbl.2.1428432260304; Tue, 07 Apr 2015 11:44:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.37 with SMTP id p5ls87274lah.9.gmail; Tue, 07 Apr 2015 11:44:20 -0700 (PDT) X-Received: by 10.112.235.38 with SMTP id uj6mr19940039lbc.9.1428432260056; Tue, 07 Apr 2015 11:44:20 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id j5si2023093laf.127.2015.04.07.11.44.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 11:44:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lagv1 with SMTP id v1so49155376lag.3 for ; Tue, 07 Apr 2015 11:44:19 -0700 (PDT) X-Received: by 10.112.29.36 with SMTP id g4mr20099108lbh.56.1428432259646; Tue, 07 Apr 2015 11:44:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp597416lbt; Tue, 7 Apr 2015 11:44:18 -0700 (PDT) X-Received: by 10.70.133.66 with SMTP id pa2mr39359916pdb.164.1428432257831; Tue, 07 Apr 2015 11:44:17 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fo3si12707374pad.17.2015.04.07.11.44.16; Tue, 07 Apr 2015 11:44:17 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753450AbbDGSoN (ORCPT + 5 others); Tue, 7 Apr 2015 14:44:13 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:35722 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753402AbbDGSoK (ORCPT ); Tue, 7 Apr 2015 14:44:10 -0400 Received: by wgyo15 with SMTP id o15so54614370wgy.2 for ; Tue, 07 Apr 2015 11:44:09 -0700 (PDT) X-Received: by 10.194.121.10 with SMTP id lg10mr43501800wjb.71.1428432249136; Tue, 07 Apr 2015 11:44:09 -0700 (PDT) Received: from localhost.localdomain ([81.134.86.156]) by mx.google.com with ESMTPSA id di9sm8816057wib.16.2015.04.07.11.44.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Apr 2015 11:44:08 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, mturquette@linaro.org, sboyd@codeaurora.org, devicetree@vger.kernel.org, geert@linux-m68k.org Subject: [PATCH v6 2/4] ARM: sti: stih410-clocks: Identify critical clocks as always-on Date: Tue, 7 Apr 2015 19:43:57 +0100 Message-Id: <1428432239-4114-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428432239-4114-1-git-send-email-lee.jones@linaro.org> References: <1428432239-4114-1-git-send-email-lee.jones@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/stih410-clock.dtsi b/arch/arm/boot/dts/stih410-clock.dtsi index 6b5803a..e1dd9b2 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-always-on = <0>; /* clk-s-a0-pll-ofd-0 */ }; clk_s_a0_flexgen: clk-s-a0-flexgen { @@ -115,6 +116,8 @@ clock-output-names = "clk-ic-lmi0", "clk-ic-lmi1"; + + clock-always-on = ; }; }; @@ -142,6 +145,7 @@ clocks = <&clk_sysin>; clock-output-names = "clk-s-c0-pll0-odf-0"; + clock-always-on = <0>; /* clk-s-c0-pll0-odf-0 */ }; clk_s_c0_pll1: clk-s-c0-pll1 { @@ -204,6 +208,12 @@ "clk-clust-hades", "clk-hwpe-hades", "clk-fc-hades"; + + clock-always-on = , + , + , + , + ; }; };