Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2870744ybd; Mon, 24 Jun 2019 14:22:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4A7qz6QyzDiJvWlXDgMK1rUyNfthqiIz02bNGxmstX74wb6ojv9MWzEjXsn7wTtuj9vRC X-Received: by 2002:a17:902:748c:: with SMTP id h12mr36809795pll.208.1561411360125; Mon, 24 Jun 2019 14:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561411360; cv=none; d=google.com; s=arc-20160816; b=mVzjrEbdyY5M2xEBcIwGTO2Gubs06QyPyvpV3zjmQAGvR6s9QWni/YP8uNYMCPc1sf sE1lixWY97i528Zmh47aIv10qOU7P4g3aO8TycOMna5ID3nRUE0AKRkRXB/o3p798JsN dSdWJNNRJREYlN4AJRNV4fjhDjlIFSsooIWQh0nQ0x82x7tMrMtC1RQRPeS0UBNCivmF pwiJOL+4B4zRRMkBmlN5RDr+zZU3WSXC+INveRLHDgdGV32A2/b8lBuu2cKoKuz43lZ3 MGuFsjY2mJdfG6qh9KpbCMcjV24NTL+SPy+rEjl3MHuJUN4UCo0RkMuA5BCR6lGK89Oi aXgA== 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; bh=ZJh7kQ4Re7eULI3b+Ojkh+KhfMpum9KSu9bIvsNWDJo=; b=CRzWkOk0llr+Tj7licjUDLk8koBqh1HA8MtDEDVjZIw56VSYPq/+eye+HBB9wH3TJk Ijc5IZl0pWaaQ+YHR3WW1s3ebmlItCGkZwNlIo991Mz2w6IWMVS4XO2I0j0ZNDTCQji7 sYn2HZfMI3iLHdzZPTVtNgKFyz4E8PE3WNThgG5SIuKKYDT6esYX8QNvckKrNJBthCcm OLinqdljXJrAzcNzWk7Y5SxDiCSRY7nRzzJzfE/euWGt3t7hFCVXGAUBbg9lSJxF0AGQ 0smhMsLCHNJeBHeiDQdqzjxqAqIMtriw6cXzV6z5XnuqNuEfHDxtI+lp1eswLRo+I7LE am1Q== 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 w125si11882379pfw.116.2019.06.24.14.22.24; Mon, 24 Jun 2019 14:22:39 -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 S1732815AbfFXSXp (ORCPT + 99 others); Mon, 24 Jun 2019 14:23:45 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:47681 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbfFXSXp (ORCPT ); Mon, 24 Jun 2019 14:23:45 -0400 X-Originating-IP: 90.89.68.76 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 2B0DC1C0005; Mon, 24 Jun 2019 18:23:34 +0000 (UTC) Date: Mon, 24 Jun 2019 20:23:33 +0200 From: Maxime Ripard To: Yangtao Li Cc: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, davem@davemloft.net, gregkh@linuxfoundation.org, mchehab+samsung@kernel.org, linus.walleij@linaro.org, nicolas.ferre@microchip.com, paulmck@linux.ibm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 08/11] thermal: sun8i: support ahb clocks Message-ID: <20190624182333.di7avywtdvzwukms@flea> References: <20190623164206.7467-1-tiny.windzz@gmail.com> <20190623164206.7467-9-tiny.windzz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190623164206.7467-9-tiny.windzz@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_device > 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? Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com