Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755207AbbLGHpO (ORCPT ); Mon, 7 Dec 2015 02:45:14 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:38661 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755136AbbLGHpI (ORCPT ); Mon, 7 Dec 2015 02:45:08 -0500 X-IronPort-AV: E=Sophos;i="5.20,393,1444662000"; d="scan'";a="201249779" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87mvtm66xs.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 8/8 v3] 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 , Geert Uytterhoeven CC: Magnus , , , , "devicetree@vger.kernel.org" In-Reply-To: <87y4d6672t.wl%kuninori.morimoto.gx@renesas.com> References: <87y4d6672t.wl%kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset="US-ASCII" Date: Mon, 7 Dec 2015 07:45:03 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0014.jpnprd01.prod.outlook.com (25.161.74.152) To SG2PR06MB1020.apcprd06.prod.outlook.com (25.161.9.28) X-Microsoft-Exchange-Diagnostics: 1;SG2PR06MB1020;2:AWVm/e/y7OMSvATQr5jK8dpfcomEWZcUweHYPx9gIqem115yB9RbVb7dFm/i1HVdeQDQX4Gp6k3OKBxC1Piz3pnkiMt9z1rOtgYQXWvoaXjEtzlpiXDUqARU0qiRy2WB3fIUjNLPgvdX8my42jOWoA==;3:QXj1arGx35sGMNFHiqsoKjtWdZ0jg34dQxTGcImenw4hbvv2NXCGAM97ymJHyTb8nrwSFVqn7RX7kDk5SNGQ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le91bDRZgm+19k10KkSX/jQIGfmhCH4NS6yBTcza8eypod9IwHPSPoQgOfHQHk7kAWhegI07Bq3OtT/tbSZ5s7L/CZVE9yuiz6E43D76TrYHuVARHsTgpwDfnM8cFGUiD3l0Zrf6BQbgnY57S91Nanb5A8SlaGwe5uQoxI9gORYZe80A7rY+mAdpxS64tq+3zieJMC3/7VdPpEYKsrgOxkIL7TPJ+SGp+o3z+MdfF2WBtgZ4a9BVytMlH4UHZo1GYNGJ7yVU8N5AnsXzuLHQBoJjBMzLSrlRfLpdgE+m 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:SG2PR06MB1020;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB1020; X-Forefront-PRVS: 078310077C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(43544003)(189002)(199003)(101416001)(47776003)(5001960100002)(86362001)(5004730100002)(189998001)(5001770100001)(122386002)(1096002)(87976001)(40100003)(50466002)(4001350100001)(97736004)(81156007)(106356001)(33646002)(54356999)(66066001)(50986999)(76176999)(42186005)(2950100001)(105586002)(92566002)(19580405001)(229853001)(3846002)(6116002)(23726003)(69596002)(36756003)(53416004)(586003)(77096005)(19580395003)(5008740100001)(83506001)(46406003);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2PR06MB1020;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SG2PR06MB1020;23:+5qxW6S9RLMaUy7W0ltDaab5kbEYbEXHJmwTOAPis?= =?us-ascii?Q?+MKg/ZGHijKR/jxByK9V85SzSbDgHm0p0oK7TdmZBhN+/NxByWZpG//ldvXY?= =?us-ascii?Q?RqmFZ/ON/2A/+xdCFky8limWSJIrEt5A7v5BC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YwjLzgau4nuV+S2+RhKeea/lrAdtQP6pUSipd6CBgmLuqw/RDDDD05/ec3A?= =?us-ascii?Q?noada9taA/opTGPdW4h4Kpge9qsW8K7bngvHsqVqgssfWQeDqS/rqEYerht6?= =?us-ascii?Q?fEQPEbHYsWE9PJ50ajauwRgitlLHgEX?= X-Microsoft-Exchange-Diagnostics: 1;SG2PR06MB1020;5:TYGl1QFfcJQXR0y9djShp5wMzIt/vqZJXAXkonFWujBASG6lq+hMS3uvTpkvQsJIIzvVD8WasEs5euhhXnh2txK38PXNVpymLttdQsOG0LNoWqg2G9J9YX2y/pazZ/HWnuzMINr6dQl/meKxXbPX9w==;24:gu6k6AIlhCDh4bi7Tlu7ThwB6CcnIQXISqT+vjuhTvnG1lhBlEBmYsrB4XUmy6/UOfY2F1xQWNrk2rtLI7q/ngdFfvQ5jOXm8Q3zDjfv6L0=;20:Jo1FazUgjmmC7PeU3RcCB/qlNUaTLlEWGcr0lAZySjDvtbzNFmOZDrl1YO1PHVlzxFH5AlIQMvIX8vZxI0tPF0i6d9xRgIk+OltIe+3PhOk/mZT4o2s3uEsnXH3P/efYLMSbXsXTx1zSLbH65ufmOEUafRU1IW2V/i5fumflrrU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2015 07:45:03.6512 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1020 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 --- v2 -> v3 - 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 be4eedc..d59595b 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/