From patchwork Wed May 24 09:39:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9745595 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 4AC1D60209 for ; Wed, 24 May 2017 09:39:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35D7928938 for ; Wed, 24 May 2017 09:39:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A29E2893C; Wed, 24 May 2017 09:39:42 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5A3928938 for ; Wed, 24 May 2017 09:39:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759789AbdEXJjl (ORCPT ); Wed, 24 May 2017 05:39:41 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:37537 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752231AbdEXJjk (ORCPT ); Wed, 24 May 2017 05:39:40 -0400 Received: by mail-wm0-f43.google.com with SMTP id d127so60890818wmf.0 for ; Wed, 24 May 2017 02:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=S4Oh12NSJVmil1divVoW6gcrn+b7YwD+JNvYkdnvnPk=; b=FwUhE7KBFm0aNSycsu02y2TJ3LguHrDpLcce48UttxY9YXFL5Fus2sX/200vGpwtOa ZX5WoLd4Gju0QTbKMra5WyGWJ4LEUQT3CNap5lp0vO2VHkVrh5VBDI36+QdCwLYAG7qy 58HQK08QNaqZxHkzsDviybBjgnRNg5xVBkve62uimC91yAjl9U8Y6qOtsK2kHRs3sTiz MbU1Pm8AYpV6VQspBmczV6O2TEL+onee6PzVcpG8D7oOsB+FY1+ELVK62+RRu3mVg2Pw 8AP+93xWkrGLnOTApOgMNWvVfHXbWvK8SPLy6vLWEWWJRW6fBEVJRgBjNBsNXwZkKSj4 IE8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=S4Oh12NSJVmil1divVoW6gcrn+b7YwD+JNvYkdnvnPk=; b=fRpeq56R3PT9K4ViU0q19xWb7RdnjTOipNrGxBU6hrM3JRyckm09ZIBx0XWjj+VTax yeYr0Nnhd6AKzpXYrktWzj6NS9t5wmMV6J5GGfv07cHocixJTbuN85ObAD6p4Oeud+Ol jCjp3WSNISuVhEijWcqOqPCyltGZi+83sq1HYDS5pQa9d914TYJnbjm6P+HG7QIibfFF HCjnpMCYxd3tRLEyOjLm4dqgYwRkS1ONvY7eH0ZjLYpSEhUZ/repU0+631cvA74Q+xE4 MfKNteX/XBmU1jCHb1YtKmngWtj0P3F7tvCV5zeZcWKa63mACRIG2Yn9AETu8xkwK9cM ADqw== X-Gm-Message-State: AODbwcBO1CahUTfIzcJ+t06CpO+mlUGFxLEb+jTUYXgKhSd4yDkHpJQ4 ytTPh52jTaCVFe62 X-Received: by 10.223.155.145 with SMTP id d17mr3695770wrc.105.1495618776798; Wed, 24 May 2017 02:39:36 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id p76sm3886426wma.15.2017.05.24.02.39.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2017 02:39:36 -0700 (PDT) From: Jerome Brunet To: Martin Blumenstingl , Neil Armstrong , Michael Turquette , Stephen Boyd Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, carlo@caione.org, Kevin Hilman , Jerome Brunet Subject: [PATCH v2 1/2] clk: meson: meson8b: mark clk81 as critical Date: Wed, 24 May 2017 11:39:31 +0200 Message-Id: <20170524093932.5262-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170524093932.5262-1-jbrunet@baylibre.com> References: <20170524093932.5262-1-jbrunet@baylibre.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Martin Blumenstingl Disabling clk81 results in an immediate freeze of the whole system. This can happen "accidentally" when the last child-clock of clk81 is disabled (in this case the common clock framework also disables clk81, even if it was only enabled indirectly before). Signed-off-by: Martin Blumenstingl Signed-off-by: Jerome Brunet Acked-by: Neil Armstrong --- drivers/clk/meson/meson8b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index e9985503165c..9d1aaf6e9ac6 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -399,7 +399,7 @@ struct clk_gate meson8b_clk81 = { .ops = &clk_gate_ops, .parent_names = (const char *[]){ "mpeg_clk_div" }, .num_parents = 1, - .flags = (CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED), + .flags = (CLK_SET_RATE_PARENT | CLK_IS_CRITICAL), }, };