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: 9745599 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 0EA0060209 for ; Wed, 24 May 2017 09:40:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED74F28955 for ; Wed, 24 May 2017 09:40:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E21CA28950; Wed, 24 May 2017 09:40:16 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6DEB828951 for ; Wed, 24 May 2017 09:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=2ihnY4pwxpQSB+xb1QQJT1qoaIVG5SbrJWTylDcpLLA=; b=R9uGd1BoMsK6qKLoDCOxznOr9o ukjVUUY2ki8EI1BaYUCdD4zZAjgDLpvzRthb/lqIiWjAOPYn7Pk4X7W2c3mxIjzyN0pWCTzJTucUN mHucxCKOGgPUnpr5N6WetCWpHhjoWPYUl36y2S6kf5h+fLXvAVICQ51vlbI+NASMPMrSMaoJ3d/82 33sFM4TgzSYZc74YvlUYY4Czq8/zDby/J1GmL6Oxoz1R2QfV+dQHKxJaQMcCszgm5pFoGOPMULkCH YFkP2/9d6cLCB2+TwOsE/mqHyegXZ3vMaOT2SmNoxHyaiHS8jqeGwvVaWMlvKU6NjEFZ75sD9tmGl lGCRL/Xw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dDSlu-0003cn-D6; Wed, 24 May 2017 09:40:03 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDSlq-0003R5-G9 for linux-amlogic@lists.infradead.org; Wed, 24 May 2017 09:40:00 +0000 Received: by mail-wm0-x22d.google.com with SMTP id 123so25669966wmg.1 for ; Wed, 24 May 2017 02:39:38 -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=i+oXX2ZgoHly1thn54gYMFxoaD7yNNHXPGj2Zq3ZUq9VHvGN1iYD62/fENg/nY6M2w B9EqNMSJeNt+u0jodw90iiy1N8VweN8/jB823HG/gy0N1IqtkPuO4vBy2VFyv5fSav+i KJHHyroHlSICdVk5cnm5RWL2F6DI8Oyr2syX9Wxq/vUXtyTGNuTtaKcc0R0t6J8YRNTc IoyXX9EXF+oMoO4ACEAuh6THCG7yfXMZ9klqQWrWgB6zLataywKrTUl+nO6nnUwGW7mP a2lHKEb+VDlQijhyDwJtTCA/SvYsSiy/2fi1iuBnbLKUz9F5xDws/yVes4rmQNk5RhGS 677A== X-Gm-Message-State: AODbwcDqMXFkRYNrfHKk/qfU0LK7fZJo3k7jbTbtZRccElrRNp1yMkFj d6yONYEstFJJ8M6C 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170524_023958_707232_A61A9B32 X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Hilman , carlo@caione.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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), }, };