Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2740597imj; Mon, 11 Feb 2019 07:47:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IaVvl7+D7uUVMxYkgQ2bY43FrUVYk3DeiixhCAB2DhJBkpeEeUxHkanfMjoxbsY5Je+xtjQ X-Received: by 2002:a62:8a08:: with SMTP id y8mr5647075pfd.246.1549900067192; Mon, 11 Feb 2019 07:47:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900067; cv=none; d=google.com; s=arc-20160816; b=h7z+W9gTzPOy1asKZOVcAYv9hNGarl5jKjpNaXJISvof0zQ4YyyPb2jmt7fJZaoEYy XxMKwYejHJkPpcuMCB3a2Os3wJTtK+CPTJg5T3GdEK3OVESdxQhbI7KOTI9n+8tlIvsL PAiAOZMXmF4TEM7Y1EqeVVvIZ9vWPqN7hmLYOlq1/LDH9DlMvBLITGjilGIFnOx7gvsB yInQgCIqDHpTRWfKT3IjUxwUjSd/l5CU3lU1Rjak2cP1gLHQ9bJaH+ZNpojO4LrHjIBq +Hk4/y5Dh/GvWtH/AcgQDJclrR4ejGzKH7S8EJJpexq8Bm3qlXxr+KfPT9cuo8n12Zsj 4goA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XflfpkwfflFm0DtFu78CSpnWWhjyQohi8Ctj2/zXnYo=; b=UFwEIcoGpaYqOFBzY5u4KeCs/hVWyTnAJlMjUQEPqyeH6EhMRgP6ZZ1Yv3xeVDCR90 8janLfe+V4wrB/NBZTvDOuHAabfQdAfoi33ynfGX+sqHezaCiULOD0/AjyQK+VDEEdpW 82ZQ44/Qwp6SH5gVzAny1CC6tFKBCnUe+K+K55UUGThM3/cQztrkaCtqhCZMWDFiglde KStsi9PSQpzSVcMRvVD9rU6JntdY6wwnXjCv7Tbm+Vx9y7dagje2f+m6DGJCsHALGZZE lIv03uGdq9QCEwB/uAq1rJkown4WrsD/sjm9KneNy0ljYtlyXJyXRMbXqN1D7di2/32E 41xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ck6AHI34; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba4si3000681plb.428.2019.02.11.07.47.31; Mon, 11 Feb 2019 07:47:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ck6AHI34; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732574AbfBKPqi (ORCPT + 99 others); Mon, 11 Feb 2019 10:46:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:54030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732002AbfBKOmQ (ORCPT ); Mon, 11 Feb 2019 09:42:16 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0783021B18; Mon, 11 Feb 2019 14:42:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549896135; bh=YVuDz8Bfp6Em5DuvIbVOjNB2mFz6e1FITTZB0U0MUwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ck6AHI34oecWaiZkxuW6AiZ/ibMqw8y5jzW09UCWjSvVlYOOigr7vtMZEAXo+MN7Z n2e+sa1FVr6b4V56Pvx4/Qkzv1wMxX2Wib1sEWIHgJvW55oPDMzy6SsgsYgbtdeYtc NP4C2u182OOwO7ddvOBRBpDXX0waUmF5uZvdiFys= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Blumenstingl , Jerome Brunet , Neil Armstrong , Sasha Levin Subject: [PATCH 4.19 057/313] clk: meson: meson8b: mark the CPU clock as CLK_IS_CRITICAL Date: Mon, 11 Feb 2019 15:15:37 +0100 Message-Id: <20190211141857.623286559@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141852.749630980@linuxfoundation.org> References: <20190211141852.749630980@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 0dad1ec65bc30a549aba38d34a727309bbf41bc8 ] We don't want the common clock framework to disable the "cpu_clk" if it's not used by any device. The cpufreq-dt driver does not enable the CPU clocks. However, even if it would we would still want the CPU clock to be enabled at all times because the CPU clock is also required even if we disable CPU frequency scaling on a specific board. The reason why we want the CPU clock to be enabled is a clock further up in the tree: Since commit 6f888e7bc7bd58 ("clk: meson: clk-pll: add enable bit") the sys_pll can be disabled. However, since the CPU clock is derived from sys_pll we don't want sys_pll to get disabled. The common clock framework takes care of that for us by enabling all parent clocks of our CPU clock when we mark the CPU clock with CLK_IS_CRITICAL. Until now this is not a problem yet because all clocks in the CPU clock's tree (including sys_pll) are read-only. However, once we allow modifications to the clocks in that tree we will need this. Signed-off-by: Martin Blumenstingl Acked-by: Jerome Brunet Signed-off-by: Neil Armstrong Link: https://lkml.kernel.org/r/20181115224048.13511-4-martin.blumenstingl@googlemail.com Signed-off-by: Sasha Levin --- drivers/clk/meson/meson8b.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index 0da8334f2e43..9d79ff857d83 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -634,7 +634,8 @@ static struct clk_regmap meson8b_cpu_clk = { "cpu_scale_out_sel" }, .num_parents = 2, .flags = (CLK_SET_RATE_PARENT | - CLK_SET_RATE_NO_REPARENT), + CLK_SET_RATE_NO_REPARENT | + CLK_IS_CRITICAL), }, }; -- 2.19.1