Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5183309img; Wed, 27 Mar 2019 03:53:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyf5eC838WAE5koF3DPZjFhRHGAfMe8281KL0lP2J4zthaDc0GssK24QdlYdS5M9G1wvKRs X-Received: by 2002:a17:902:8a8a:: with SMTP id p10mr36092422plo.92.1553684031363; Wed, 27 Mar 2019 03:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553684031; cv=none; d=google.com; s=arc-20160816; b=yscpDzlnntKeSgLCEOLAbXPQmJm9cpTw0IXPwml2wIOgZZPhkssZAmVKdq+GzP1wM/ WZW+RUnMCWquZipMrbCNnwAq+DoG/OSK5o/xZgoExK+dXSYTmEMFYZN0bkJFoA1lqPam gugO9PaNUFsyoz4fKyAq/GmTxXXJrIN/M9im+/tDKqj9kYf/QQ5vPqbQYEapGDxz1uru fqRt9PqrQDTqji9EufcRzNxQRvWcuKAHooKizIgrZmzcBNxxsD667/CUuEK0KsmWGPb/ tVPMEJORbvc9aHKWjSn5ivSHMznOkyLiTQr6acdaojpSClhX2AdLFQ7UqRGh+Ez8XwSw hzCQ== 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:date:cc:to:from:subject :message-id:dkim-signature; bh=whkKhI+tBkxQ3DBj/1BujfBmXUt+Yvq0OEuaSpUdaxU=; b=uwS09kaGcWQOfb/FOhQeieGXH51lz9TZKQPGv/S+DPr6fdi22FbARgA2dcY9cwXjp4 4sfeDwlDXraNfrcGf1SJM88XBtHVqp0YfJ5Fs57S62Dji+HPuyX0QBlDJUaLR7nbWK4K X+CoQJJff/zu7HpbgLD4eF0L7FNo13yu+iehLuJj/fLa4ItlPqI+PZJOgJu8eFpqN4Vp 5YY0kpYWLeSdHod1FswK3ZZxxKKa84ssEpYoSTraLpCAqwexBLbwZ0Zxz6dcJzsx2law D0Q4+utQpbqd32YRfPIcDeQJhiOuN0ScOtsNFtYCWRZ+u1t78DMuONqLbgbHTpSiStpM zycg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=cgDzqEBl; 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 m2si7061445pgp.463.2019.03.27.03.53.35; Wed, 27 Mar 2019 03:53:51 -0700 (PDT) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=cgDzqEBl; 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 S1732972AbfC0Kvs (ORCPT + 99 others); Wed, 27 Mar 2019 06:51:48 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35884 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731904AbfC0Kvs (ORCPT ); Wed, 27 Mar 2019 06:51:48 -0400 Received: by mail-wr1-f68.google.com with SMTP id y13so272238wrd.3 for ; Wed, 27 Mar 2019 03:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=whkKhI+tBkxQ3DBj/1BujfBmXUt+Yvq0OEuaSpUdaxU=; b=cgDzqEBlkFT09bW3V4y+a0i+SLRqvC7ch6Lofmji0KkEcPv1p5eOBK6cOfu/hQ2k2n +0WoU/Q8Kn1A3vnA11vMaBhed9zkgkEm5HRh/TajARE9KARPaVldIFtyxVaha0VlFaMm TDWR1f0w3TxtCvXvKQ5Cm4Hrza365zLwp+EuVYIXTzOz5YeH8yYLoBLd3p7x4DInbHw3 sgProb3it7GVP7iT1aEUrqNr7vf/lVQP6KYzPFaeV2+NU+H4gEpLcQqXlq1Vch7RNvQE PLy0hdnUyKEazJnd9xP0O5q0HCjxtxobqEqXbR28wY/WVYOBDK3xAJXBCFmEuIqOTQjf c74A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=whkKhI+tBkxQ3DBj/1BujfBmXUt+Yvq0OEuaSpUdaxU=; b=AFJ4+WUVvG7L4DW6uzEcslhGmiTtGlMjoAAxSFDnmbGP/0nsxPsHhabdHAwduPXclk 5We6SmMXTzcrrdl0xTCWh8MF4OWAEEcK/FNcgho9RsjNAgi9vkIhypupGN7zU9zeMOz4 Pwy7sZMLiNV5kva+yO1vA9z5MdoSyl3kWwSlqD/Vx2xtYPjF5ywrBcYBFgPJMfJCEia1 7IK6ERZHudo/WawoVlZutnd28INNh66z7zXm//3wYOyRUY2YNwzyYUWe+8UVNhNPg0Hw QoLr7zp5actPhHin7YlF1V1j/4tfAtMdNrZbfT1BkUXgBitLFyN33YaLJhUvCYIyhd99 WXwA== X-Gm-Message-State: APjAAAWUxM0wQWYXVOzKjt/hAIbPKtHRL5ysrM7Vviu42qAzzNEIgAug LpPyvUoXFOL3E0niFztw+u1rog== X-Received: by 2002:adf:d84d:: with SMTP id k13mr25301283wrl.154.1553683906216; Wed, 27 Mar 2019 03:51:46 -0700 (PDT) Received: from boomer.baylibre.com ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.gmail.com with ESMTPSA id n189sm33090938wmb.28.2019.03.27.03.51.44 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 27 Mar 2019 03:51:45 -0700 (PDT) Message-ID: <345dd7e287ed07f4a84847ff024fce237c1380a1.camel@baylibre.com> Subject: Re: [PATCH RFC 3/6] clk: meson: g12a: mark fclk_div3 as critical From: Jerome Brunet To: Neil Armstrong , khilman@baylibre.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Date: Wed, 27 Mar 2019 11:51:42 +0100 In-Reply-To: <20190327103308.25058-4-narmstrong@baylibre.com> References: <20190327103308.25058-1-narmstrong@baylibre.com> <20190327103308.25058-4-narmstrong@baylibre.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-03-27 at 11:33 +0100, Neil Armstrong wrote: > On Amlogic Meson G12b platform, the fclk_div3 seems to be necessary for > the system to operate correctly. > > Disabling it cause the entire system to freeze, including peripherals. > > This patch patch marks this clock as critical, fixing boot on G12b platforms. > > Signed-off-by: Neil Armstrong > --- > drivers/clk/meson/g12a.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c > index 03b4c78f558f..d62ebcd2162d 100644 > --- a/drivers/clk/meson/g12a.c > +++ b/drivers/clk/meson/g12a.c > @@ -1062,6 +1062,16 @@ static struct clk_fixed_factor g12a_fclk_div3_div = { > .ops = &clk_fixed_factor_ops, > .parent_names = (const char *[]){ "fixed_pll" }, > .num_parents = 1, > + /* > + * This clock is used by the resident firmware and is required > + * by the platform to operate correctly. > + * Until the following condition are met, we need this clock to > + * be marked as critical: > + * a) Mark the clock used by a firmware resource, if possible > + * b) CCF has a clock hand-off mechanism to make the sure the > + * clock stays on until the proper driver comes along > + */ > + .flags = CLK_IS_CRITICAL, The gate should be critical then, not the fixed_divider clock. the fdiv3 gate is a child of this clock, so fdiv3 should still be able to gate with this > }, > }; > > Could you CC me of the whole series next time, I prefer getting the all context.