From: Eduardo Valentin <edubezval@gmail.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Leo Yan <leo.yan@linaro.org>,
rui.zhang@intel.com, jean.wangtao@linaro.org,
Keerthy <j-keerthy@ti.com>,
"open list:THERMAL" <linux-pm@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V2] thermal/drivers/hisi: Switch to interrupt mode
Date: Mon, 4 Dec 2017 18:00:33 -0800 [thread overview]
Message-ID: <20171205020031.GA4949@localhost.localdomain> (raw)
In-Reply-To: <20170928073220.GF2196@mai>
Hello,
On Thu, Sep 28, 2017 at 09:32:20AM +0200, Daniel Lezcano wrote:
> On Thu, Sep 28, 2017 at 02:57:52PM +0800, Leo Yan wrote:
> > Hi Daniel,
> >
> > On Thu, Sep 28, 2017 at 07:13:44AM +0200, Daniel Lezcano wrote:
> > > At this moment, we have both the interrupt setup and the polling enabled. The
> > > interrupt does nothing more than forcing an update while the temperature is
> > > polled every second.
> > >
> > > We can do much better than that, threshold is set to 65C in the DT and the
> > > passive cooling device enters in the dance when 75C is reached. We need to
> > > sample the temperature at 65C in order to let the IPA gather enough values for
> > > the PID computation. If the SoC is running at a temperature below 65C, we will
> > > be constantly polling for nothing.
> > >
> > > This patch disables the sensor when the temperature is below 65C and enables it
> > > when passing the threshold. It results the thermal sensor driver will have no
> > > activity most of the time.
> > >
> > > Cc: Keerthy <j-keerthy@ti.com>
> > > Cc: Leo Yang <leo.yan@linaro.org>
> >
> > s/Yang/Yan :) Have tested this patch on Hikey at my side:
>
> Oops sorry :)
>
> > Reviewed-by: Leo Yan <leo.yan@linaro.org>
> > Tested-by: Leo Yan <leo.yan@linaro.org>
>
Is this still needed after the latest rework done?
>
> Great! Thanks for testing.
>
> -- Daniel
next prev parent reply other threads:[~2017-12-05 2:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-26 23:54 [PATCH] thermal/drivers/hisi: Switch to interrupt mode Daniel Lezcano
2017-09-26 23:54 ` Daniel Lezcano
2017-09-27 8:26 ` Keerthy
2017-09-27 8:26 ` Keerthy
2017-09-27 15:56 ` Daniel Lezcano
2017-09-28 5:13 ` [PATCH V2] " Daniel Lezcano
2017-09-28 5:13 ` Daniel Lezcano
2017-09-28 6:57 ` Leo Yan
2017-09-28 7:32 ` Daniel Lezcano
2017-12-05 2:00 ` Eduardo Valentin [this message]
2017-12-05 6:49 ` Daniel Lezcano
2017-09-29 11:07 ` Valentin Schneider
2017-09-29 16:46 ` Daniel Lezcano
2017-09-29 17:26 ` Valentin Schneider
2017-10-02 20:02 ` Daniel Lezcano
2017-10-10 16:51 ` Daniel Lezcano
2017-10-10 17:01 ` Valentin Schneider
2017-10-10 17:13 ` Daniel Lezcano
2017-10-10 17:19 ` Valentin Schneider
2017-10-10 17:28 ` Daniel Lezcano
2017-10-11 1:54 ` Wangtao (Kevin, Kirin)
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=20171205020031.GA4949@localhost.localdomain \
--to=edubezval@gmail.com \
--cc=daniel.lezcano@linaro.org \
--cc=j-keerthy@ti.com \
--cc=jean.wangtao@linaro.org \
--cc=leo.yan@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.