From patchwork Tue Oct 18 15:35:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 9382399 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5E3D5607D0 for ; Tue, 18 Oct 2016 15:37:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E52A29643 for ; Tue, 18 Oct 2016 15:37:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4317029658; Tue, 18 Oct 2016 15:37:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 07D1029643 for ; Tue, 18 Oct 2016 15:37:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwWRV-0000pa-Sd; Tue, 18 Oct 2016 15:36:41 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwWRG-0000ev-Sk for linux-arm-kernel@lists.infradead.org; Tue, 18 Oct 2016 15:36:28 +0000 Received: by mail-wm0-x233.google.com with SMTP id c78so447703wme.0 for ; Tue, 18 Oct 2016 08:36:06 -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; bh=p2uUsxo4bZHxey9zYli8SLej0Oll8aUP0Dm+1Eq5nfI=; b=cQVArJRDhPmiVqLEc2NxDu36bu0BDSwB49W4UDrUIi4aiaAj0yWfBakMndL/rnaATw dDNQHZ4jujIHgDhXbBnGP/GeSN2P2CdQ1eg2hw5iAEAGliGdCmbgnwOrVt7v26SbUZEm NFmhDq0+KHe8SARhLyojzIkXn/597yKefZuPw= 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; bh=p2uUsxo4bZHxey9zYli8SLej0Oll8aUP0Dm+1Eq5nfI=; b=SGZ7CSwFBmaL+B/UyZb/QRQ509z+K3ftkFokkHMI2sJkrT5/ATD0sccfL2/s7HEZMo hzvvrdZM5bE7c4zrMmt3llBmeJXVIcmr1GdPi94xLL51TljlR2AI9s9bmW1L+S08LCI1 CRKjNWXpqz/VqSqkuuUo+HtABY/1L3glVH4XGvjYCI4yONuVZXpDKcSMH4Whv/UtIjfk ZgS2VlqPp80yl0eEV4KBnL0+smrwhW84Mtconqba4QqNkedRUqHdeuwPEWjXW6cZty1n zR23/4AyuPV9sep878UgbVmTXEx801+1Rc3U5uVFDnfaLVKhUnjVaXyLH2Z+JiWb4Y2h KoDA== X-Gm-Message-State: AA6/9RmJs24S49wow4OsqHK6L+4u1b+z6foCXCkEfWtn6AKi6turE1CxwIw41lhtilqJ/vhD X-Received: by 10.28.185.137 with SMTP id j131mr1051522wmf.73.1476804961460; Tue, 18 Oct 2016 08:36:01 -0700 (PDT) Received: from localhost.localdomain (cpc89244-aztw30-2-0-cust4998.18-1.cable.virginm.net. [86.31.179.135]) by smtp.gmail.com with ESMTPSA id h3sm63774234wjp.45.2016.10.18.08.35.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Oct 2016 08:35:59 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, patrice.chotard@st.com Subject: [PATCH] ARM: sti: stih410-clocks: Add PROC_STFE as a critical clock Date: Tue, 18 Oct 2016 16:35:57 +0100 Message-Id: <1476804957-24000-1-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161018_083627_430323_6236283E X-CRM114-Status: GOOD ( 12.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.griffin@linaro.org, devicetree@vger.kernel.org, lee.jones@linaro.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Once the ST frontend demux HW IP has been enabled, the clock can't be disabled otherwise the system will hang and the board will be unserviceable. To allow balanced clock enable/disable calls in the driver we use the critical clock infrastructure to take an extra reference on the clock so the clock will never actually be disabled. Signed-off-by: Peter Griffin Acked-by: Patrice Chotard --- arch/arm/boot/dts/stih410-clock.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stih410-clock.dtsi b/arch/arm/boot/dts/stih410-clock.dtsi index 8598eff..07c8ef9 100644 --- a/arch/arm/boot/dts/stih410-clock.dtsi +++ b/arch/arm/boot/dts/stih410-clock.dtsi @@ -208,7 +208,8 @@ "clk-clust-hades", "clk-hwpe-hades", "clk-fc-hades"; - clock-critical = , + clock-critical = , + , , , ,