From patchwork Wed Jul 22 13:04:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 51346 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id DA55020323 for ; Wed, 22 Jul 2015 13:04:50 +0000 (UTC) Received: by lbcjj5 with SMTP id jj5sf23126867lbc.1 for ; Wed, 22 Jul 2015 06:04:49 -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=CXBkzlJiy7XZYP/sTlWHUEoykxSxvmiQxXNLITz/v5c=; b=jyBfZUC5P+EB2+Y8iR9lj7I1r9LPZX7RLo+avz2cnAvOyPpbbUs9fUofIk3AIzSY69 QkYi2N5QeP957NYetK79S6JWowQiWcRXi7eA9WCCOZn5JSFYJyiOk88NoaREYqvkPHFN huR+fp1UOwPiMuw7hsGVLDUHvnqziz34MS8zoGpFXLceQhIq42WNoL7QJP1hZPSAIy/C +Iq20yYRQ/6ZUHQr5vpT4NvF0bE1dL5YDSxK/JFRMERDYjmzP9/uimjg3p0muk+H/tey gO9AEma0lCgirwQtLkGHRu/yZnuqXlba//BAwD2WBetATbM020gTBH/+U+kOk3bqTe8Y tvyA== X-Gm-Message-State: ALoCoQkVNYGhgrMCf8yn8ROxVc+HPEAH8rGsZHEIZZXgDy068y2ukAPklj/oYQO3aOl9KyMb/75p X-Received: by 10.112.118.194 with SMTP id ko2mr1182145lbb.16.1437570289803; Wed, 22 Jul 2015 06:04:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.138 with SMTP id am10ls71892lac.67.gmail; Wed, 22 Jul 2015 06:04:49 -0700 (PDT) X-Received: by 10.112.138.100 with SMTP id qp4mr2185020lbb.85.1437570289624; Wed, 22 Jul 2015 06:04:49 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id c9si1138356lac.128.2015.07.22.06.04.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jul 2015 06:04:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lahe2 with SMTP id e2so75103333lah.1 for ; Wed, 22 Jul 2015 06:04:49 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr2274108lbp.88.1437570289522; Wed, 22 Jul 2015 06:04:49 -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.7.198 with SMTP id l6csp2104743lba; Wed, 22 Jul 2015 06:04:48 -0700 (PDT) X-Received: by 10.107.138.152 with SMTP id c24mr4178262ioj.74.1437570286075; Wed, 22 Jul 2015 06:04:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f36si1371774iod.18.2015.07.22.06.04.45; Wed, 22 Jul 2015 06:04:46 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756963AbbGVNEl (ORCPT + 28 others); Wed, 22 Jul 2015 09:04:41 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:37693 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756758AbbGVNEX (ORCPT ); Wed, 22 Jul 2015 09:04:23 -0400 Received: by wibud3 with SMTP id ud3so171488258wib.0 for ; Wed, 22 Jul 2015 06:04:22 -0700 (PDT) X-Received: by 10.194.175.65 with SMTP id by1mr5453492wjc.152.1437570262613; Wed, 22 Jul 2015 06:04:22 -0700 (PDT) Received: from localhost.localdomain (host81-129-173-55.range81-129.btcentralplus.com. [81.129.173.55]) by smtp.gmail.com with ESMTPSA id qq1sm2359327wjc.0.2015.07.22.06.04.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Jul 2015 06:04:21 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, mturquette@linaro.org, sboyd@codeaurora.org, devicetree@vger.kernel.org, geert@linux-m68k.org, maxime.ripard@free-electrons.com, s.hauer@pengutronix.de, Lee Jones Subject: [PATCH v7 2/5] ARM: sti: stih410-clocks: Identify critical clocks Date: Wed, 22 Jul 2015 14:04:12 +0100 Message-Id: <1437570255-21049-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437570255-21049-1-git-send-email-lee.jones@linaro.org> References: <1437570255-21049-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.215.43 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..0a72c56 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"; + critical-clock = <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"; + + critical-clock = ; }; }; @@ -142,6 +145,7 @@ clocks = <&clk_sysin>; clock-output-names = "clk-s-c0-pll0-odf-0"; + critical-clock = <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"; + + critical-clock = , + , + , + , + ; }; };