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: 9745597 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 ADB8760209 for ; Wed, 24 May 2017 09:40:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 986BD28957 for ; Wed, 24 May 2017 09:40:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83D9128954; Wed, 24 May 2017 09:40:09 +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 0962928951 for ; Wed, 24 May 2017 09:40:08 +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=Ks38opkxvZcvgE/Vd+S36NQr9rBEC86pr1FB6xoCooo=; b=QFsbOk0tXxcCdXHgBbobGZiyp7 wrLpfgsq6Qh36n2iFF7yT4FrGajoyHQc4+WlohGrTtVN3G8caw3X1ig4Q6KJ2KPvekq272/x3LcGl IXuhhuxaEQwwoXOAAe8u9md2knflkuf4a+Tq/U0tD0ogQ/4ijg4GZHGZpZlPetbFhztWtTIp1FmdW 6lEDaN3ocv9BQ1BnyjqCNHD9rz75dAFXHqVmmZPtCHpPKE1r4Wrb3HaaDBb4jHqsQsBMNG/c0gbLl qhL+JE/W09qU05H2EMxNkKD8GXHnGI3wT1LfY7BzXMzstOPbDFPmX32MfEPoccaXSxc/7c8PJkhMG dVQ8Knkg==; 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 1dDSlz-0003wf-OL; Wed, 24 May 2017 09:40:07 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDSlq-0003R6-H9 for linux-arm-kernel@lists.infradead.org; Wed, 24 May 2017 09:40:02 +0000 Received: by mail-wm0-x229.google.com with SMTP id m7so21689497wmg.0 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=V80kSexeFC7SqI0LZIsSX1EFVtyuT2MagkPP5kNxvRuBW+CS4BLI+SGq20iI1f9D4S mdA7o4WvzQv1ygTPwYMefJpD65o1u2OMxlZTIftcZO3XE2+knwiM0AxkNbiJLCeT109J PkK6lUKz32LLNvi2kTMghiWNd9UBPnR6WkHi8B8dJY471D6p3HoPqjTY88OojRqaU486 YaPfKgRSUcWY51fMurtLfoV0X1cfOfW7RN4cp8BtRM/AfcO/c/HFQsABKUCMNPhM4qv5 qYfCXy2nhgCGvvhFqGH/riCM9RXlfVxvIfsqQ21Q1LzP+MdX7LVfhbeux82MeUADmCd+ aBPQ== X-Gm-Message-State: AODbwcDRdqkIBB0DImrpJU63X8AwWaf1m0HQY84s+5zGmJBkhqWMyPKT 7miXA7lfaHGIP1tA 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_741177_B14944E5 X-CRM114-Status: GOOD ( 10.97 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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), }, };