From patchwork Fri Feb 27 21:14:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 45267 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B8F4C204BC for ; Fri, 27 Feb 2015 21:23:38 +0000 (UTC) Received: by wghk14 with SMTP id k14sf15972694wgh.0 for ; Fri, 27 Feb 2015 13:23:38 -0800 (PST) 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=uHbkpweDAMTj9GNwBkmyYyfyMTY7hlTFiWVw5T7s5ag=; b=XajEstVIW0iHFFcknXmTX+gJmLt32qaIz1pZ2L5G3+6Ptuq9ijsALoVIf9mjeIv7vJ M2lbiI/oJ7oVXcL8VcM5fbPNGlPWDuLYDLAHO96q7Ir0qBsrwNeeBz6i15cwCziraX85 K2QUvlXN/fMekwkmGMysIt7O+B8S4RuNT9Yx1Ku9xSx27Q7Jm8utEAby5XZgDf2u0VuR t3WE66+w7fJqs6C5KIo0PeNulwWPVN3NJ7vWihwZh3KE3JlfbtE/gkpIuKaGPl67/Pa3 p/GoKKqGjvCRTnnomeNrYiq5oZ9FALtexGlNn2jbvVffEDQ3iaXJqjLp0goetBcpamvt 01Jg== X-Gm-Message-State: ALoCoQl9rUlzOBf8Sfhcufq0eoHt7nA92tiX5koLjBDScD4dhfWVLmyJcL+zLe2EcCgYhF6rwJXl X-Received: by 10.180.39.164 with SMTP id q4mr768148wik.5.1425072217972; Fri, 27 Feb 2015 13:23:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.225.132 with SMTP id rk4ls238179lac.79.gmail; Fri, 27 Feb 2015 13:23:37 -0800 (PST) X-Received: by 10.112.85.165 with SMTP id i5mr14929173lbz.7.1425072217773; Fri, 27 Feb 2015 13:23:37 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id an5si3805628lbd.63.2015.02.27.13.23.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 13:23:37 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbiz11 with SMTP id z11so19760297lbi.8 for ; Fri, 27 Feb 2015 13:23:37 -0800 (PST) X-Received: by 10.152.8.33 with SMTP id o1mr14919004laa.56.1425072217485; Fri, 27 Feb 2015 13:23:37 -0800 (PST) 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.35.133 with SMTP id h5csp4164067lbj; Fri, 27 Feb 2015 13:23:36 -0800 (PST) X-Received: by 10.68.203.166 with SMTP id kr6mr27527765pbc.92.1425072215740; Fri, 27 Feb 2015 13:23:35 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10si622024pap.20.2015.02.27.13.23.34; Fri, 27 Feb 2015 13:23:35 -0800 (PST) Received-SPF: none (google.com: linux-kernel-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 S1755480AbbB0VXb (ORCPT + 28 others); Fri, 27 Feb 2015 16:23:31 -0500 Received: from mail-wg0-f53.google.com ([74.125.82.53]:35067 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755276AbbB0VWr (ORCPT ); Fri, 27 Feb 2015 16:22:47 -0500 Received: by wggz12 with SMTP id z12so22892959wgg.2 for ; Fri, 27 Feb 2015 13:22:46 -0800 (PST) X-Received: by 10.180.99.194 with SMTP id es2mr10568174wib.23.1425072166714; Fri, 27 Feb 2015 13:22:46 -0800 (PST) Received: from localhost.localdomain ([31.91.229.167]) by mx.google.com with ESMTPSA id hs7sm4477856wib.4.2015.02.27.13.22.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Feb 2015 13:22:45 -0800 (PST) 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 2/4] ARM: sti: stih410-clocks: Identify critical clocks as always-on Date: Fri, 27 Feb 2015 21:14:32 +0000 Message-Id: <1425071674-16995-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1425071674-16995-1-git-send-email-lee.jones@linaro.org> References: <1425071674-16995-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.217.182 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 in order to prevent the common clk framework from trying to turn them 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..7b257c2 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 = "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 = "clk-ic-lmi0"; }; }; @@ -142,6 +145,7 @@ clocks = <&clk_sysin>; clock-output-names = "clk-s-c0-pll0-odf-0"; + clock-always-on = "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 = "clk-icn-cpu", + "clk-tx-icn-dmu", + "clk-ext2fa9", + "clk-icn-lmi", + "clk-icn-sbc"; }; };