Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933126AbbLHFaK (ORCPT ); Tue, 8 Dec 2015 00:30:10 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:12093 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932708AbbLHFaF (ORCPT ); Tue, 8 Dec 2015 00:30:05 -0500 X-IronPort-AV: E=Sophos;i="5.20,398,1444662000"; d="scan'";a="200082938" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87io495x3c.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 8/8 v4] thermal: of-thermal: of_thermal_set_trip_temp() call thermal_zone_device_update() User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") To: Simon , Zhang Rui , Eduardo Valentin CC: Geert Uytterhoeven , Magnus , , , , "devicetree@vger.kernel.org" In-Reply-To: <87vb895x9d.wl%kuninori.morimoto.gx@renesas.com> References: <87vb895x9d.wl%kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset="US-ASCII" Date: Tue, 8 Dec 2015 05:30:00 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0024.jpnprd01.prod.outlook.com (25.161.131.162) To HKXPR06MB1014.apcprd06.prod.outlook.com (25.161.178.156) X-Microsoft-Exchange-Diagnostics: 1;HKXPR06MB1014;2:2iR+gB2P/5gHy57nP7meJsHFaoDhB3vQ8MINPLrTaq2j6mZHC9xoaqT686o0/h9Ism13NTm80uqihz14XsAb9MDGZGv6FCxE/IbkkHumn9Zthu4LulWGzt5SQAueD3RXEIYFO2f1CG3lDXCyLXUOFQ==;3:T9gC+7X54SoKbOOnbGzhoCqhm8US0IF0ljX2jpQ86i7OyyEUtHkbqsKOq9LpM570Y+OX1q0p+O5fXQx1dBEXbhu1e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KV+0tzPeq06TuPbQkhs6j0hdlbygCTyk8d07TGze3a7cfb3iRsbJqQD6ABO4QCMXWvKz5UGdMwJXEMBQaicXEZMnnSUS+oFa6iPezDtD5NOoVI03rrfdIHo97bgrH2Cr7ThP7N1CaJWAEdc26d+OVmc6eyj3LQo8vNjWJzsE/neZAjztSM0iqwzRlWc6JypQ73dAcQmQw9g8unGU8fSY4ifsoW+fBdiED+6pimICp2VWfGDeFTOL+I+iXdD/wKJm+z5tCAh/CBys+DydJY8HP67UjSJmrwLdIGDJJHovqbnK1zoWXh X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046);SRVR:HKXPR06MB1014;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB1014; X-Forefront-PRVS: 0784C803FD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(43544003)(189002)(199003)(97736004)(101416001)(23726003)(53416004)(189998001)(42186005)(4001350100001)(76176999)(5001770100001)(47776003)(92566002)(50986999)(54356999)(66066001)(1096002)(77096005)(46406003)(105586002)(106356001)(50466002)(36756003)(19580405001)(83506001)(3846002)(69596002)(19580395003)(5004730100002)(81156007)(5008740100001)(87976001)(5001960100002)(33646002)(6116002)(40100003)(86362001)(586003)(122386002)(2950100001)(229853001);DIR:OUT;SFP:1102;SCL:1;SRVR:HKXPR06MB1014;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HKXPR06MB1014;23:cch0/j+K71PlaVXmDrcOh6NYc/IRU75Llqmb+nnzY?= =?us-ascii?Q?lvPR1A4aHDH9Z1dRDz0upC69JIWdQWyN3vAJ9y4YlINMwWpOiXa8+snwOL+p?= =?us-ascii?Q?B9j96KBSk0udGSWgkJLsByEt0wGt+NM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lLteXwI8u464laMaB1OGfPrxd/eMoP8bDWo4QDj35CYAneMzHxsfg3W?= =?us-ascii?Q?QH9NpsdfVD2JPvDiwaJa+2B0sfabnpiYoM07pR6Yg+N6JH6kE0l/zpGO4q7Z?= =?us-ascii?Q?jacSBctNHcJcnVhrPRqI/3p0PmdldRl?= X-Microsoft-Exchange-Diagnostics: 1;HKXPR06MB1014;5:GbHWqABCY86mQOQWkmuoTtJB5e8ntkmLTPJ92al8Y+YIi5CNutPc0o7ULwa2flWs53cwv5Uaf+hhtqiV1kLgcNWatEu+1phYXnjbAChpE8rKjxd7Q6YatgbgpoICrWxIKTTF1MNN7dmbdhsRRgOTFA==;24:7TtrI+h9MvpKfFdZsZTfejAhhqndBoxX5DxV+BzK4PCyuLgWW+NU7a9RCD/WtK1uXZtZy4XIbrI8cd70vKxy1++5awyH+7a5UJidhrQHHno=;20:B+2QVGGTb8zJUgGGopmLnxhndiGqa61kjh5ehyb6BQigY6JTVYisiykEx1AcJ+yIKZlVL1Ny1C2LboIn88eUCtAWcYzIqJq8J+uRHaLG6mNj+KhAzGr+R40CBdzdWh83gekFeOJPzplZv5Q2cAlxYPHi3gprc+rNs3PQ8kMpSsY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2015 05:30:00.2017 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB1014 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 35 From: Kuninori Morimoto of_thermal_set_trip_temp() updates trip temperature. It should call thermal_zone_device_update() immediately. Signed-off-by: Kuninori Morimoto --- 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); + return 0; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/