All of lore.kernel.org
 help / color / mirror / Atom feed
From: biju.das@bp.renesas.com (Biju Das)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [PATCH 4.4.y-cip 05/12] thermal: trip_point_temp_store() calls thermal_zone_device_update()
Date: Fri,  6 Dec 2019 12:12:21 +0000	[thread overview]
Message-ID: <1575634348-10954-6-git-send-email-biju.das@bp.renesas.com> (raw)
In-Reply-To: <1575634348-10954-1-git-send-email-biju.das@bp.renesas.com>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

commit ad74e46cb3ba9e706f91f3f71baf816d2d8e45db upstream.

trip_point_temp_store() updates trip temperature. It should call
thermal_zone_device_update() immediately.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 drivers/thermal/thermal_core.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 929092f..0e919c3 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -700,8 +700,12 @@ trip_point_temp_store(struct device *dev, struct device_attribute *attr,
 		return -EINVAL;
 
 	ret = tz->ops->set_trip_temp(tz, trip, temperature);
+	if (ret)
+		return ret;
 
-	return ret ? ret : count;
+	thermal_zone_device_update(tz);
+
+	return count;
 }
 
 static ssize_t
-- 
2.7.4

  parent reply	other threads:[~2019-12-06 12:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06 12:12 [cip-dev] [PATCH 4.4.y-cip 00/12] Add CAN/IRQC/THERMAL/VIN/Audio support Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 01/12] dt-bindings: can: rcar_can: Add r8a7744 support Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 02/12] ARM: dts: r8a7744: Add CAN support Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 03/12] dt-bindings: irqchip: renesas-irqc: Document r8a7744 support Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 04/12] ARM: dts: r8a7744: Add IRQC support Biju Das
2019-12-06 12:12 ` Biju Das [this message]
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 06/12] dt-bindings: thermal: rcar: Add device tree support for r8a7744 Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 07/12] ARM: dts: r8a7744: Add thermal device to DT Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 08/12] media: dt-bindings: media: rcar_vin: add device tree support for r8a7744 Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 09/12] ARM: dts: r8a7744: add VIN dt support Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 10/12] ASoC: rsnd: Add r8a7744 support Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 11/12] ARM: dts: r8a7744: Add audio support Biju Das
2019-12-06 12:12 ` [cip-dev] [PATCH 4.4.y-cip 12/12] ARM: dts: r8a7744-iwg20d-q7-dbcm-ca: Add device tree for camera DB Biju Das
2019-12-06 21:48 ` [cip-dev] [PATCH 4.4.y-cip 00/12] Add CAN/IRQC/THERMAL/VIN/Audio support Nobuhiro Iwamatsu
2019-12-06 22:29   ` Pavel Machek
2019-12-09 22:13     ` nobuhiro1.iwamatsu at toshiba.co.jp

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=1575634348-10954-6-git-send-email-biju.das@bp.renesas.com \
    --to=biju.das@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    /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.