linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Valentin <edubezval@gmail.com>
To: Rui Zhang <rui.zhang@intel.com>,
	hongtao.jia@freescale.com, kong.kongxinwei@hisilicon.com,
	nrajan@codeaurora.org
Cc: Linux PM <linux-pm@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Linux ACPI <linux-acpi@vger.kernel.org>
Subject: Re: [PATCH 0/2] thermal: add support to slope and offset
Date: Mon, 11 May 2015 20:24:30 -0700	[thread overview]
Message-ID: <20150512032428.GH4810@localhost.localdomain> (raw)
In-Reply-To: <1431399857-13943-1-git-send-email-edubezval@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

Hi,

On Mon, May 11, 2015 at 08:04:15PM -0700, Eduardo Valentin wrote:
> Hello all,
> 
> This is a patch series to add support to slope and offset constants
> of a linear extrapolation model. This type of model is very common
> across different platforms, and many drivers are attempting
> to have its support.
> 
> The basic idea is to have this mapping in the thermal core,
> as part of thermal_zone_params. In this series, I also add
> a simple support to read them from DT, i.e.:
>                 /* hotspot = 1 * adc + 6000 */
> 		coefficients =          <1      6000>;
> 
> I am copying some of the driver writers that attempted to 
> use this feature, but by adding their own property. Please,
> check if this change is enough to properly map your slope
> and offset requirement. Remember, they will be added in your
> thermal zone DT node, instead of in your sensor DT node.
> 

Forgot to copy Narendran, codeaurora developer

> BR,
> 
> Eduardo Valentin (2):
>   thermal: support slope and offset coefficients
>   thermal: of-thermal: add support for reading coefficients property
> 
>  Documentation/thermal/sysfs-api.txt | 16 ++++++++++++++++
>  drivers/thermal/of-thermal.c        | 26 ++++++++++++++++++++++++--
>  drivers/thermal/thermal_core.c      |  4 ++++
>  include/linux/thermal.h             | 11 +++++++++++
>  4 files changed, 55 insertions(+), 2 deletions(-)
> 
> -- 
> 2.3.4
> 

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

      parent reply	other threads:[~2015-05-12  3:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-12  3:04 [PATCH 0/2] thermal: add support to slope and offset Eduardo Valentin
2015-05-12  3:04 ` [PATCH 1/2] thermal: support slope and offset coefficients Eduardo Valentin
2015-05-12  3:25   ` Eduardo Valentin
2015-05-12  3:04 ` [PATCH 2/2] thermal: of-thermal: add support for reading coefficients property Eduardo Valentin
2015-05-12  3:27   ` [PATCH 2/2] thermal: of-thermal: add support for reading coefficients property 33 O May 11 Antoine Tenart ( 15K) [PATCH v4 1/3] iio: adc: add support for Berlin Eduardo Valentin
2015-05-12  3:24 ` Eduardo Valentin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150512032428.GH4810@localhost.localdomain \
    --to=edubezval@gmail.com \
    --cc=hongtao.jia@freescale.com \
    --cc=kong.kongxinwei@hisilicon.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=nrajan@codeaurora.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).