From: Eduardo Valentin <edubezval@gmail.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Simon <horms@verge.net.au>, Zhang Rui <rui.zhang@intel.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Magnus <magnus.damm@gmail.com>,
linux-sh@vger.kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH 8/8 v4] thermal: of-thermal: of_thermal_set_trip_temp() call thermal_zone_device_update()
Date: Mon, 14 Dec 2015 21:11:04 +0000 [thread overview]
Message-ID: <20151214211103.GB10924@localhost.localdomain> (raw)
In-Reply-To: <87io495x3c.wl%kuninori.morimoto.gx@renesas.com>
Hey!
On Tue, Dec 08, 2015 at 05:30:00AM +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> of_thermal_set_trip_temp() updates trip temperature. It should call
> thermal_zone_device_update() immediately.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> v3 -> v4
>
> - no change
>
> drivers/thermal/of-thermal.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c
> index 42b7d42..a1dd7b1 100644
> --- a/drivers/thermal/of-thermal.c
> +++ b/drivers/thermal/of-thermal.c
> @@ -334,6 +334,8 @@ static int of_thermal_set_trip_temp(struct thermal_zone_device *tz, int trip,
> /* thermal framework should take care of data->mask & (1 << trip) */
> data->trips[trip].temperature = temp;
>
> + thermal_zone_device_update(tz);
> +
Although I understand the need for this, I would prefer you move this change
to thermal_core.c. The reasoning is to keep the same behavior for
thermal zones created over of thermal and regular thermal zones.
BR,
> return 0;
> }
>
> --
> 1.9.1
>
next prev parent reply other threads:[~2015-12-14 21:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-08 5:26 [PATCH 0/8 v4] enable to use thermal-zone on r8a7790/1 Kuninori Morimoto
2015-12-08 5:27 ` [PATCH 1/8 v4] thermal: rcar: move rcar_thermal_dt_ids to upside Kuninori Morimoto
2015-12-08 5:27 ` [PATCH 2/8 v4] thermal: rcar: check every rcar_thermal_update_temp() return value Kuninori Morimoto
2015-12-08 5:27 ` [PATCH 3/8 v4] thermal: rcar: check irq possibility in rcar_thermal_irq_xxx() Kuninori Morimoto
2015-12-08 5:28 ` [PATCH 4/8 v4] thermal: rcar: retern error rcar_thermal_get_temp() if no ctemp update Kuninori Morimoto
2015-12-14 21:20 ` Eduardo Valentin
2015-12-14 23:55 ` Kuninori Morimoto
2015-12-15 0:24 ` Kuninori Morimoto
2015-12-08 5:28 ` [PATCH 5/8 v4] thermal: rcar: enable to use thermal-zone on DT Kuninori Morimoto
2015-12-08 6:03 ` Khiem Nguyen
2015-12-08 5:29 ` [PATCH 6/8 v4] ARM: shmobile: r8a7790: enable to use thermal-zone Kuninori Morimoto
2015-12-08 5:29 ` [PATCH 7/8 v4] ARM: shmobile: r8a7791: " Kuninori Morimoto
2015-12-08 5:30 ` [PATCH 8/8 v4] thermal: of-thermal: of_thermal_set_trip_temp() call thermal_zone_device_update() Kuninori Morimoto
2015-12-14 21:11 ` Eduardo Valentin [this message]
2015-12-15 0:20 ` Kuninori Morimoto
2015-12-10 4:57 ` [PATCH 0/8 v4] enable to use thermal-zone on r8a7790/1 Simon Horman
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=20151214211103.GB10924@localhost.localdomain \
--to=edubezval@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=horms@verge.net.au \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--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).