From patchwork Thu May 4 18:32:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9712499 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 D7FF560235 for ; Thu, 4 May 2017 18:32:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5FF6286A3 for ; Thu, 4 May 2017 18:32:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAB0D286A7; Thu, 4 May 2017 18:32:58 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 673E1286B6 for ; Thu, 4 May 2017 18:32:58 +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=kK+zPXd2X+lLlkkqxCjI486DMgQqEZOunfeNDOGRdq0=; b=uonLFnNl1i3ck9uAnZP0YJeUQA yEBYmhJqZjkR77+ynyVzJSaLPJLwWmdtaUMX5YWgUNOOAcroyyMsnW5yHGjFo2ZUNBF2XLzAYBG7H V/d4ZUQIYGrYjVPLmhXekXHJmT0Bj+HPxDYwnw49q1w9MOGuLLKsf+WcG7INcdlBNSLNK60ti/l3t ksZOo8kRx6c0RZhVZFNEqrpX6Cbsxtr6X0UAbMSAhVE1NzhzTfOwrtB+2mvz3r4BNS2x3NataNm1z phHE6JBeTuVfUnChdStJI7FE1MnB90YF56diDI7upIrCVsPXF5Gdn48O7c5V0YL65LMYwAoXsbH8a cH1k60rw==; 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 1d6LYV-0007nm-7L; Thu, 04 May 2017 18:32:47 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d6LYG-0007Va-NP; Thu, 04 May 2017 18:32:34 +0000 Received: by mail-wr0-x243.google.com with SMTP id w50so2259996wrc.0; Thu, 04 May 2017 11:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KbFFymAlkTCR04J8GF32lkAJ5e93/nTjsWj5R51Erx8=; b=pSqp5cTx7qfkRO1gYWw8Ga/gOMtAQqQMGo+w6y7We2e+gx2Tt71r6qk+BmXGytKnzp +ctUgSt8Br3TRrvpEGCqGSEj59NqnuvIhHwoe15xnEMdcKzael87AV8dUEDq+dRowqtu 6qQTR/ff7X1n63C5iDwlwWtXsuFJUkQ3/hkNby/Whh+6bTSQKvylhIfa0uwdSG3yFsBb dAcppVrLuTL+dlHq5Hy0Us6oEPCzEtluS7D4Q9t1SQkHhmuTS1SSRzsyBQB93IpHz13I ZaDObPCHwaMWKWZ+6DSXSoGz/5Z/6K2YeaydHOHtDYWDRqniRY3Rr0ql9EUNPrZnyuK7 jHJw== 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=KbFFymAlkTCR04J8GF32lkAJ5e93/nTjsWj5R51Erx8=; b=LTb+CNg4nfhqNKZccrm9jRheqZ6Tm/pylTjBJtEv3EulTz8EsZBx2KyVd/c8nr4sOm SR/mHkcI5Y5TC8nHvaHuavHZn0oLqW8lVTYuHAU92CAoABAZMb3vEfbIwQUsyoxdZ6zJ BBoFdwdjf81Huom+zKksl/6UTh31aPt/vogN+AKc2gqKoeG1jYm7PgmF2b4fmkh3eYt3 o9OnW4DHivEJnEyjPVwMkcsxV9f0UbUkAIy1fyV3M71A9ujNhx/b1CR6q9u0NO2MMrsK E4tWQrvP60jLh9vo4kmRuB1aH8sCpJtD64xQiVB7eY64lglslwLoqQNb0IvGC+AZ/cb3 g2/w== X-Gm-Message-State: AN3rC/6W/n31ovDHq0K7dxjBYuip9T2qM2v3n+aC4SAa2WQI2E1dpc3D xquhSj5OIcF+gQ== X-Received: by 10.223.163.21 with SMTP id c21mr23006577wrb.38.1493922730633; Thu, 04 May 2017 11:32:10 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3F23104E1FBC614D4FACDED.dip0.t-ipconnect.de. [2003:dc:d3f2:3104:e1fb:c614:d4fa:cded]) by smtp.googlemail.com with ESMTPSA id y60sm2725574wrb.39.2017.05.04.11.32.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 11:32:09 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, jbrunet@baylibre.com, narmstrong@baylibre.com, linux-clk@vger.kernel.org Subject: [PATCH 1/1] clk: meson: meson8b: mark clk81 as critical Date: Thu, 4 May 2017 20:32:01 +0200 Message-Id: <20170504183201.13175-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170504183201.13175-1-martin.blumenstingl@googlemail.com> References: <20170504183201.13175-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170504_113232_918106_76E56195 X-CRM114-Status: UNSURE ( 9.49 ) 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: Martin Blumenstingl , khilman@baylibre.com, mturquette@baylibre.com, sboyd@codeaurora.org, carlo@caione.org, linux-arm-kernel@lists.infradead.org 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 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 --- 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..bfd1690724de 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_IGNORE_UNUSED | CLK_IS_CRITICAL), }, };