From patchwork Tue Dec 8 05:30:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7794461 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 64BCFBEEE1 for ; Tue, 8 Dec 2015 05:30:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B23E20527 for ; Tue, 8 Dec 2015 05:30:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B199F2052C for ; Tue, 8 Dec 2015 05:30:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932752AbbLHFaJ (ORCPT ); Tue, 8 Dec 2015 00:30:09 -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 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 08 Dec 2015 14:30:03 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 8F0504596D; Tue, 8 Dec 2015 14:30:03 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 837788002E; Tue, 8 Dec 2015 14:30:03 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 7CE3F8002D; Tue, 8 Dec 2015 14:30:03 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id QAF20408; Tue, 8 Dec 2015 14:30:03 +0900 X-IronPort-AV: E=Sophos;i="5.20,398,1444662000"; d="scan'";a="200082938" Received: from mail-sg2apc01lp0246.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.246]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 08 Dec 2015 14:30:01 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by HKXPR06MB1014.apcprd06.prod.outlook.com (10.161.178.156) with Microsoft SMTP Server (TLS) id 15.1.337.19; Tue, 8 Dec 2015 05:30:00 +0000 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> 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/IbkkHumn9Zthu4LulWGzt5SQAueD3RXEIYFO2f1CG3lDXCyLXUOF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Uz2RkhrE4sRikPQCVSO2lIDeXE+8C4+CaMIpRqTxqh56DHROjPLmghWxcKAPTHG2zJVseZT6X34j0UDE++Vr2cVAGVx2TLrzglZUMctKV+0tzPeq06TuPbQkhs6j0hdlbygCTyk8d07TGze3a7cfb3iRsbJqQD6ABO4QCMXWvKz5UGdMwJXEMBQaicXEZMnnSUS+oFa6iPezDtD5NOoVI03rrfdIHo97bgrH2Cr7ThP7N1CaJWAEdc26d+OVmc6eyj3LQo8vNjWJzsE/neZAjztSM0iqwzRlWc6JypQ73dAcQmQw9g8unGU8fSY4ifsoW+fBdiED+6pimICp2VWfGDeFTOL+I+iXdD/wKJm+z5tCAh/CBys+DydJY8HP67U jSJmrwLdIGDJJHovqbnK1zoWXh 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?lv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abKNspL?= =?us-ascii?Q?90yQ9/56HA8yGBHJsm2GYkfQSxZ9I6UqeHLDJ5y/5EdCM5frtBOUT2GCCAyH?= =?us-ascii?Q?Jg1I0lLteXwI8u464laMaB1OGfPrxd/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-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }