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: 9712495 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 D1F8C60235 for ; Thu, 4 May 2017 18:32:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF27F285F5 for ; Thu, 4 May 2017 18:32:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3B25284D1; Thu, 4 May 2017 18:32:34 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 9F8C7285F5 for ; Thu, 4 May 2017 18:32:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756250AbdEDScZ (ORCPT ); Thu, 4 May 2017 14:32:25 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34541 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754998AbdEDScM (ORCPT ); Thu, 4 May 2017 14:32:12 -0400 Received: by mail-wr0-f194.google.com with SMTP id 6so2257325wrb.1 for ; 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=XTHq0H7Ln6ICmaB9bcVuem1nSoOcpR1ehvKi1todBT9gTcFFGiP9L6BOhCHbue7K6j UJ/KvVX6xew1Y39mj1ZlGpvFaqmGAGKOhQRo60mEoKfY1Ka181dQxRB+9H6VjhavFpud O/QhFArPseWmYw3rPPh5ZvqyIRu6eMHmZQsP/rKh3QViKeI9rMbYyoApEImMCK5WU5u8 tUVrurouM/5j5Pecr+3hgRFI93X1gTNWVStwt4RM6pNpUoeEz0jvgio8wMcidUYDAych RKbefowMkGna+lEMIp+4V/DOyLZNSI1rEYfTsQ4+i8wzYZnmjr128ZITqdofcEQmabwp MSDg== X-Gm-Message-State: AN3rC/6dbmY4WQZIAKPs1sfwUKbSwn1kOkqsPb3cRuv4gath3SXhSe9b ysbz+TSPxbeBvw== 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 Cc: khilman@baylibre.com, carlo@caione.org, sboyd@codeaurora.org, mturquette@baylibre.com, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl 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> 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 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), }, };