Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3382936ybd; Tue, 25 Jun 2019 01:25:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzg8MAOmJB30VuDC3E11rQ+kDCrgb7bKcKd7a70vr2xKVUuKiV20hz7pcx8+SPGHURI2cT X-Received: by 2002:a17:902:ac85:: with SMTP id h5mr147209958plr.198.1561451152257; Tue, 25 Jun 2019 01:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561451152; cv=none; d=google.com; s=arc-20160816; b=PLstDQuxaZ0YN1a7W0lYgOHoV/pTLqMjK6VyWZayEHj2FGVuX6Ojvqp9kayBCFtV46 6UlVMwA1nNIHX1uGFjdgjM5OkOQRXklNsWbKqLhmjQ/qEO0TVYu3xbubCQb2ZeTnMGhq XYWGkWvM1XBNSYcTrMxX17K+BN8lbNkmk/veO9tkjf/3a9nIcxswYUw3iL8jdRmMEiBk PdN3hFxVtsQTA3Q9G/ltsxmsUbLzASiGsZ2y596Vh5QXGhXteL9+4OLCfY2JAU3iJhXV iLcMUkxCTcFa2WwuqtEOIWAZBhwUFFcHGksuKzyfUKZCQ6acIIUzqyo1nJslXOnFnfhl Dt8w== 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:to :from:date; bh=o+sVUHaXfVGzN1BZb79ggccP0wCRgRIEJzKQRWzHNuA=; b=w3Q8yD9QkaOJKLaJU/N5cnzI04+/9nlmA3a6hlFUauvZFXatGTQ8/8raazlrhOUSZt IoSwvKaCknogBylrQ68vSPAPU9SdTIfHeDTbfkp5HMYCZ6LGKcb34/yqyYKPKt9Qkdxq wRMyWf1NJDeI+p6qwbWJD897QlxICvfejU7xFd1RJR82y7OgAH3++Ocm9VLz8PvvTRJc NzrhGUDS1eoAao0PMVM7yWwzlCnKirrPe3ppLc9yjkb3inS+Y2hFjdPMM//LRdxQilyO tc1xEcjRKfyM4wTllHwWUUxfEjVbuMXENaVItyJbzGbxCUhSLd9im9Dj0zQpfm1KTkcC gUAw== ARC-Authentication-Results: i=1; mx.google.com; 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 v1si11842989pgs.355.2019.06.25.01.25.35; Tue, 25 Jun 2019 01:25:52 -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; 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 S1730163AbfFYIZR (ORCPT + 99 others); Tue, 25 Jun 2019 04:25:17 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:45845 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726702AbfFYIZQ (ORCPT ); Tue, 25 Jun 2019 04:25:16 -0400 X-Originating-IP: 90.88.16.156 Received: from localhost (aaubervilliers-681-1-41-156.w90-88.abo.wanadoo.fr [90.88.16.156]) (Authenticated sender: maxime.ripard@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 84BD740008; Tue, 25 Jun 2019 08:25:07 +0000 (UTC) Date: Tue, 25 Jun 2019 10:25:07 +0200 From: Maxime Ripard To: Yangtao Li , mark.rutland@arm.com, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, edubezval@gmail.com, wens@csie.org, robh+dt@kernel.org, mchehab+samsung@kernel.org, rui.zhang@intel.com, paulmck@linux.ibm.com, davem@davemloft.net, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 08/11] thermal: sun8i: support ahb clocks Message-ID: <20190625082507.mgycs6rzlxpvgqgu@flea> References: <20190623164206.7467-1-tiny.windzz@gmail.com> <20190623164206.7467-9-tiny.windzz@gmail.com> <20190624182333.di7avywtdvzwukms@flea> <20190625003416.pxve36mrxmotg2bq@core.my.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ry5qotdx34xj2snb" Content-Disposition: inline In-Reply-To: <20190625003416.pxve36mrxmotg2bq@core.my.home> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ry5qotdx34xj2snb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 25, 2019 at 02:34:16AM +0200, Ond=C5=99ej Jirman wrote: > On Mon, Jun 24, 2019 at 08:23:33PM +0200, Maxime Ripard wrote: > > On Sun, Jun 23, 2019 at 12:42:03PM -0400, Yangtao Li wrote: > > > H3 has extra clock, so introduce something in ths_thermal_chip/ths_de= vice > > > and adds the process of the clock. > > > > > > This is pre-work for supprt it. > > > > > > Signed-off-by: Yangtao Li > > > --- > > > drivers/thermal/sun8i_thermal.c | 17 ++++++++++++++++- > > > 1 file changed, 16 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_= thermal.c > > > index ed1c19bb27cf..04f53ffb6a14 100644 > > > --- a/drivers/thermal/sun8i_thermal.c > > > +++ b/drivers/thermal/sun8i_thermal.c > > > @@ -54,6 +54,7 @@ struct tsensor { > > > }; > > > > > > struct ths_thermal_chip { > > > + bool has_ahb_clk; > > > int sensor_num; > > > int offset; > > > int scale; > > > @@ -69,6 +70,7 @@ struct ths_device { > > > struct regmap *regmap; > > > struct reset_control *reset; > > > struct clk *bus_clk; > > > + struct clk *ahb_clk; > > > > Hmm, thinking a bit about this, the name of those two clocks doesn't > > make sense. AHB is the bus being used to access that device, so the > > bus clock is the AHB clock. > > > > What is that clock being used for? > > To control the A/D and sample averaging logic, I suppose. It's controlled= by the > THS_CLK_REG (THS Clock Register) in H3 user manual. > > bus_clk controls THS_GATING in BUS_CLK_GATING_REG2 (THS module is connect= ed to > APB bus). > > I'd call it ths_clk and bus_clk. Thanks. We've tried to make clock names a bit more generic and consistent, so let's use mod instead. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ry5qotdx34xj2snb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXRHaYwAKCRDj7w1vZxhR xQrlAP9wwKwsQ2PbVvHGyuOJSFjRJZ9ASA22w83xIaKJDErjhgEAsmUAcw4APZyi BhQMziRi3MAIeW70nBIvZFtQhI4YBwI= =YZIB -----END PGP SIGNATURE----- --ry5qotdx34xj2snb--