From patchwork Wed Apr 1 12:28:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 46619 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E2562216D1 for ; Wed, 1 Apr 2015 12:28:45 +0000 (UTC) Received: by wgtj4 with SMTP id j4sf9937906wgt.0 for ; Wed, 01 Apr 2015 05:28:45 -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=UnKPKg2frl9AgZxCW6F57b+gJgFosxreJxcy2X7vp3RSf07gSxb7bZSujYXq+WEKz2 Ye0FpvaU19KkcLZrADOBu/lJL6VYA/euuYPSdMKCgUJFLSltJDSZ4nD+6dqMYLvqobRe +8eK+Pfpu8HSxU/XDq7GHfBNDHfKvF6adV5vYHx4KbzSIrzSfIc31oVHjn6+geoau6Sf hgSyA4DJ+fSZPHuVuacsokjhY7lKsoIX8snWUXT4L9A1n49JznIlQp1nn6Btc5TbTx4y f0ODq0NA2mIqNQVdRg1qwnKyNZHSbLrAdrh6wdIXlVRJfMVJNHN5S6BIDn2GW4q8GcbN C9Ng== X-Gm-Message-State: ALoCoQl2c1zXbNADF6jhvGKe8ww8nVX+iRxV/n8BE4Qwmv8FHIg08RgjJuyrEDIMUORa8WlqKowm X-Received: by 10.152.23.7 with SMTP id i7mr2645709laf.1.1427891324921; Wed, 01 Apr 2015 05:28:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.4 with SMTP id lk4ls61277lac.15.gmail; Wed, 01 Apr 2015 05:28:44 -0700 (PDT) X-Received: by 10.112.183.134 with SMTP id em6mr35008816lbc.52.1427891324701; Wed, 01 Apr 2015 05:28:44 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id a8si1457362lbp.118.2015.04.01.05.28.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 05:28:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagg8 with SMTP id g8so35285171lag.1 for ; Wed, 01 Apr 2015 05:28:44 -0700 (PDT) X-Received: by 10.112.29.36 with SMTP id g4mr27611815lbh.56.1427891324605; Wed, 01 Apr 2015 05:28:44 -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.57.201 with SMTP id k9csp629437lbq; Wed, 1 Apr 2015 05:28:43 -0700 (PDT) X-Received: by 10.66.141.109 with SMTP id rn13mr76541178pab.113.1427891322609; Wed, 01 Apr 2015 05:28:42 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hv8si516378pdb.173.2015.04.01.05.28.41; Wed, 01 Apr 2015 05:28:42 -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 S1753352AbbDAM2i (ORCPT + 5 others); Wed, 1 Apr 2015 08:28:38 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:38911 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753300AbbDAM2f (ORCPT ); Wed, 1 Apr 2015 08:28:35 -0400 Received: by wibgn9 with SMTP id gn9so64317674wib.1 for ; Wed, 01 Apr 2015 05:28:34 -0700 (PDT) X-Received: by 10.194.185.68 with SMTP id fa4mr81458438wjc.111.1427891313870; Wed, 01 Apr 2015 05:28:33 -0700 (PDT) Received: from localhost.localdomain ([81.134.86.156]) by mx.google.com with ESMTPSA id lg18sm25254076wic.23.2015.04.01.05.28.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 05:28:33 -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 Subject: [PATCH v5 2/4] ARM: sti: stih410-clocks: Identify critical clocks as always-on Date: Wed, 1 Apr 2015 13:28:22 +0100 Message-Id: <1427891304-20160-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427891304-20160-1-git-send-email-lee.jones@linaro.org> References: <1427891304-20160-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.45 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 = , + , + , + , + ; }; };