Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7765433ybi; Mon, 22 Jul 2019 20:17:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyex4DGAvTBMZN4jYqyHk09EsnEl8Q2BQARBGZKh1jk3JI95wnPfI9M6PJwbcIHV4J1HNpa X-Received: by 2002:a17:902:e011:: with SMTP id ca17mr79944260plb.328.1563851858304; Mon, 22 Jul 2019 20:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563851858; cv=none; d=google.com; s=arc-20160816; b=wWZG608EoVitL3N9awPKtTelQa6za34XPHzQseijSXeWW5l+Rm+UWU6Z6O9M/9AsjG wCcst9u/R5mWYrD1adUNLBbo1l7qE3sNIRFHWE6vrDz17cRPbb0SmaqGzVC6bnptK+5L GgLkwW49oP/2d9UAHSzoTctMZ+saU4hEchVhvI1FhsUZfLa0Apnbsj679YcLO+uxNi0B v0TnbS6uUJEoI7Oy8QSp1CvS7jYAQ7WlFHPyQ3CPfzkNHWZCzqrckqf2TQ+QLOXZujO/ w5cIvB841fhOEFtXCbYOvcHqpS3T2no16m8iUc0AAezePE85ssLz7jrnJYlq+s2V2fWT +mFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:from:cc:to :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=dZIqBwyw2wcYtSO0+JRjHNc/qqBmuKJSba9SXBZBC2g=; b=B+Xl9IhTdxLAtDgOO1pamo1B6daTYMwfCiz9CAjxjkiRSTKb/3qSkYB5mhhvHElM6A tn6rX8xHs9aHBjBGRSbvKMkrM7G9+q/x3u4NSFwMFja0Wj+AZYZgwezcEw/9SDgZkr8A cKSe9drOnDdE0y6ujDbhikEbsw0VCLp+JE7QVoN/lwWYDpzrfKMvsKvc7W1QcGhmw96r tj+Cnmbnn/XdFKXz3NBL3C5eoaH1FkKTEBOO32K0qlsb4P36/rX+l1cDwF4Ph7+YtP04 MpHXCur3+X9YeNTJMjTDbjmxN8NghvPlV2OuP0g1J8fLZ8pAtxc6BbDnHCUNNHf9DCkb NQQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hXFwaRQ7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y65si10955939pgd.487.2019.07.22.20.17.22; Mon, 22 Jul 2019 20:17:38 -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=@kernel.org header.s=default header.b=hXFwaRQ7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731538AbfGVVZi (ORCPT + 99 others); Mon, 22 Jul 2019 17:25:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:54362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729059AbfGVVZi (ORCPT ); Mon, 22 Jul 2019 17:25:38 -0400 Received: from kernel.org (unknown [104.132.0.74]) (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 41C9121900; Mon, 22 Jul 2019 21:25:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563830737; bh=NW7gQC4ICt0N9/M+RHMFx28ZJTSv9cMfIhpuZHQv35w=; h=In-Reply-To:References:Subject:To:Cc:From:Date:From; b=hXFwaRQ7UUiTJbf90j7UD6moPpoc9yC4DZo44EfNqlULb8ETuD8ZbrBhKjcTRo9FH WXY+++WosNX0wunwkISAfXn4J0IF5QHuIpIXi7rWY3UALHNiInmZCgheVowxDDs7NS FFBRu3zwZacwUg8LwJmhzAGevALVAy9s1XutzI1M= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190705085218.lvvqnqx6nfph2era@fsr-ub1664-175> References: <1561453316-11481-1-git-send-email-abel.vesa@nxp.com> <20190625223223.3B8EC2053B@mail.kernel.org> <20190705085218.lvvqnqx6nfph2era@fsr-ub1664-175> Subject: Re: [PATCH] clk: imx8mq: Mark AHB clock as critical To: Abel Vesa Cc: Anson Huang , Fabio Estevam , Mike Turquette , Sascha Hauer , Shawn Guo , dl-linux-imx , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux Kernel Mailing List From: Stephen Boyd User-Agent: alot/0.8.1 Date: Mon, 22 Jul 2019 14:25:36 -0700 Message-Id: <20190722212537.41C9121900@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Abel Vesa (2019-07-05 01:52:19) > On 19-06-25 15:32:22, Stephen Boyd wrote: > > Quoting Abel Vesa (2019-06-25 02:01:56) > > > Keep the AHB clock always on since there is no driver to control it a= nd > > > all the other clocks that use it as parent rely on it being always en= abled. > > >=20 > > > Signed-off-by: Abel Vesa > > > --- > > > drivers/clk/imx/clk-imx8mq.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > >=20 > > > diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8m= q.c > > > index 5fbc2a7..b48268b 100644 > > > --- a/drivers/clk/imx/clk-imx8mq.c > > > +++ b/drivers/clk/imx/clk-imx8mq.c > > > @@ -398,7 +398,7 @@ static int imx8mq_clocks_probe(struct platform_de= vice *pdev) > > > clks[IMX8MQ_CLK_NOC_APB] =3D imx8m_clk_composite_critical("no= c_apb", imx8mq_noc_apb_sels, base + 0x8d80); > > > =20 > > > /* AHB */ > > > - clks[IMX8MQ_CLK_AHB] =3D imx8m_clk_composite("ahb", imx8mq_ah= b_sels, base + 0x9000); > > > + clks[IMX8MQ_CLK_AHB] =3D imx8m_clk_composite_critical("ahb", = imx8mq_ahb_sels, base + 0x9000); > >=20 > > Please add a comment into the code why it's critical. >=20 > Comment explaining why the AHB bus clock is critical ? > Isn't that self-explanatory ? Nope, it isn't self-explanatory, because nothing on this line says "bus" and it could be that someone reading this code isn't well versed in the concepts of ARM world AHB to connect the two. >=20 > >=20 > > > clks[IMX8MQ_CLK_AUDIO_AHB] =3D imx8m_clk_composite("audio_ahb= ", imx8mq_audio_ahb_sels, base + 0x9100);