Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1206291ybh; Sat, 3 Aug 2019 20:35:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzG3jezsjRtY+zINviK/ZCSFHu1tODN5OeoYpaJaZGAUa0BH6f++WfMLzxHIMVQUGll48N2 X-Received: by 2002:a17:902:8489:: with SMTP id c9mr140193892plo.327.1564889758829; Sat, 03 Aug 2019 20:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564889758; cv=none; d=google.com; s=arc-20160816; b=ZZw8Ew7TiSpymJVX07p/vewPezP7eRbXu9+beEf5EB+x2v1EOvon6gK3Uenm0mTYlG FWlbUhf8RejuxiD6zrtMZIZJdu0qZdEAvdqlbhodYU1i5KtZpGl7mAsH/FztygUP5/PC 3zD8m9z8L71Lh7bnm0BTpsBZUGw95KIzMydufTLhZiXwStOQYWFt+lIbfes+eX386Chd EOVcGLCJxsPkRCn+DZYvflTCLvFBRbXi8DJkaDMmWj2RFAfoJV137/BBEqO6vJ05YDRZ VGfHcFuYUpPl1rWABV+/0s2jviVYf6Tt4jo9MBzQ0Tz187dTc8sHOTXPVl7dhmgLPG17 8xwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=r69oJYdCC8dzCh4mTBkYo5rFvksTm1Bs06uQkFDrUV0=; b=qHym1FFh2JRMUI0YG+NMtYSCw3xHSxJ1YrLByymSAp8oIu039tUoRnBNM2+ogMoLs9 Y6k0xXgS03+rVopFRZsOVkUCOBalluelC0LLtvByUxGJti6iLw/fCS6GyaZ52AvEAxis GLtH4rP8OjI8W4YNg93etzmwgoJQ3gqDND6ZPDn2XBkjJ+6nI8hBWg4YGj4w6u5pVqTL wA/AeFQjv4qs8VJDY6pFCh50tkQnA6H0OFTCCTgRzrkODgHXqepXsnAvhR/8+fD/f98X OAdrs5pWgRs63pYFJYp8P6G6hNAtswMly7XUkecWJtlwpp1nH9j1jBzWv+2cQetRXdGa DC8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nulC3FIq; 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 24si44132603pgu.501.2019.08.03.20.35.44; Sat, 03 Aug 2019 20:35:58 -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=nulC3FIq; 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 S1727477AbfHCH1c (ORCPT + 99 others); Sat, 3 Aug 2019 03:27:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:44950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbfHCH1c (ORCPT ); Sat, 3 Aug 2019 03:27:32 -0400 Received: from X250 (cm-84.211.118.175.getinternet.no [84.211.118.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 590052073D; Sat, 3 Aug 2019 07:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564817251; bh=ISRX7+8TaI/SMx9RmJLbtByBVbP0icXdpWl2B0m8MZk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nulC3FIqa5lNy93JFklyXxDRF0TLm8KsjSGnLczzYa6JNpz21F9e+U4TDcA4Ekr1L HeEc+Ln5iATlOPAJuG17KDpo/kivCl8NyN2qczb/NwA1j3esT9XmPk3HefEbeESIZ3 qT1yfmugnnlQzPVQvJOqtg+2ttJL9fuT5HUYfP2w= Date: Sat, 3 Aug 2019 09:27:25 +0200 From: Shawn Guo To: Daniel Baluta Cc: Stephen Boyd , Abel Vesa , Anson Huang , Fabio Estevam , Mike Turquette , Sascha Hauer , dl-linux-imx , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux Kernel Mailing List Subject: Re: [PATCH] clk: imx8mq: Mark AHB clock as critical Message-ID: <20190803072723.GB7597@X250> References: <1561453316-11481-1-git-send-email-abel.vesa@nxp.com> <20190625223223.3B8EC2053B@mail.kernel.org> <20190705085218.lvvqnqx6nfph2era@fsr-ub1664-175> <20190722212537.41C9121900@mail.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 27, 2019 at 09:30:57AM +0300, Daniel Baluta wrote: > On Tue, Jul 23, 2019 at 6:17 AM Stephen Boyd wrote: > > > > 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 and > > > > > all the other clocks that use it as parent rely on it being always enabled. > > > > > > > > > > Signed-off-by: Abel Vesa > > > > > --- > > > > > drivers/clk/imx/clk-imx8mq.c | 2 +- > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.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_device *pdev) > > > > > clks[IMX8MQ_CLK_NOC_APB] = imx8m_clk_composite_critical("noc_apb", imx8mq_noc_apb_sels, base + 0x8d80); > > > > > > > > > > /* AHB */ > > > > > - clks[IMX8MQ_CLK_AHB] = imx8m_clk_composite("ahb", imx8mq_ahb_sels, base + 0x9000); > > > > > + clks[IMX8MQ_CLK_AHB] = imx8m_clk_composite_critical("ahb", imx8mq_ahb_sels, base + 0x9000); > > > > > > > > Please add a comment into the code why it's critical. > > > > > > 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. > > Agree with Stephen. Commit message should try to give as much details > as possible > also maybe educate the readers who might not have that much knowledge. > > Abel, I understand that for someone who works daily with this part of the kernel > this change might look trivial. > > Also, without this patch linux-next hangs on imx8mq. How does that happen? Mainline is fine there? Shawn