Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933020AbbLOAVI (ORCPT ); Mon, 14 Dec 2015 19:21:08 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:23314 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932649AbbLOAVF (ORCPT ); Mon, 14 Dec 2015 19:21:05 -0500 X-IronPort-AV: E=Sophos;i="5.20,429,1444662000"; d="scan'";a="201805206" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87fuz4r2d8.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Eduardo Valentin CC: Simon , Zhang Rui , Geert Uytterhoeven , Magnus , , , , "devicetree@vger.kernel.org" Subject: Re: [PATCH 8/8 v4] thermal: of-thermal: of_thermal_set_trip_temp() call thermal_zone_device_update() In-Reply-To: <20151214211103.GB10924@localhost.localdomain> References: <87vb895x9d.wl%kuninori.morimoto.gx@renesas.com> <87io495x3c.wl%kuninori.morimoto.gx@renesas.com> <20151214211103.GB10924@localhost.localdomain> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Tue, 15 Dec 2015 00:20:59 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0003.jpnprd01.prod.outlook.com (25.161.131.141) To HK2PR06MB1012.apcprd06.prod.outlook.com (25.161.188.28) X-Microsoft-Exchange-Diagnostics: 1;HK2PR06MB1012;2:Ttw6Dv9LK69CsdDQUxp6q0EMlnJjDXBItTpW8BW75aL51PzzXeDhOJ7b1MWCIGXzQdoPBN1WLngruMRvAp/ZuzzLpOzZlkon9VKJ/FO5rnGwp7rMBSFGxkYJeV1OgPBylOf5uEA56NLbmcwJVqXlRw==;3:0lKOD41SVK5UfOOi6H91fC0XTyDZQqzd7dL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uwUfQPu7ZLP/fiSIe12H7RAXJnUXYlUyI7dB7bbatSM6kVijWLoh9MKZH+aXJ6icgG5OssogYBUeu2uUeRnJTU7dBWSrZLrEHQHUTk8end+54Q566+VsYGxtC08mu/c67oQNpMZ3zqlU6aonoIoZ1dGMv6kAkxZwTGgI998/9cP7TZJzDf5hN4qm54ISHudQKm9ijemhUwB+GtlygPWXOIVdidtxBvTk+rCdvb3zyUCO7YaZW7hzF0n3tEP0NdYvyl+g5ML6mp+7vIxrbNc2Yr/m3QJwWw5yauvHIfBg375zOMi/IK+SFTRaX5ngQkYViDRutEUIJocDQnSFNbt60ESqQi59lV1qfK X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046);SRVR:HK2PR06MB1012;BCL:0;PCL:0;RULEID:;SRVR:HK2PR06MB1012; X-Forefront-PRVS: 07915F544A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(43544003)(189002)(199003)(50466002)(101416001)(53416004)(86362001)(23726003)(586003)(36756003)(40100003)(5008740100001)(189998001)(110136002)(42186005)(54356999)(5001960100002)(122386002)(105586002)(76176999)(3846002)(50986999)(97736004)(4001350100001)(6116002)(106356001)(81156007)(1096002)(5004730100002)(1411001)(33646002)(83506001)(87976001)(46406003)(77096005)(66066001)(69596002)(19580395003)(19580405001)(47776003)(2950100001)(92566002);DIR:OUT;SFP:1102;SCL:1;SRVR:HK2PR06MB1012;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HK2PR06MB1012;23:zHLySE1a/fy5fwq/CPUZudrYCIvxMRTfwaMah6lQt?= =?us-ascii?Q?UD/ba3TlQWkrNO1dEQehz3mAUIzxuPTQ5zS+EcXsc+w05QqPeSMNQ81nRyZ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SKn9E6jhrhxXzS1Jz3R8msZz0RH+8FaU/gh?= =?us-ascii?Q?CBowk4MkfRNnF+9EBuzkbQthRtwKG/DfahokzEniRMFXpNhgwdA35ZXABhya?= =?us-ascii?Q?4JFXOGt5wVsPwChv/DuxgnIH5h+Rd1nxlExAfYtCN/jEZ+OkaYUcLs9rEq4a?= =?us-ascii?Q?po1UiuVNsk=3D?= X-Microsoft-Exchange-Diagnostics: 1;HK2PR06MB1012;5:BBchgUV3/aall15HRR5HKiQi7u/XBpEB0uKMpY/mdhA00RImPXJ6RjDueCrd+1W5fWEqJZaEuWS5NHZT7o/N7XsQodr+Dp9RJDFnU5QNde+SAUBERbTJg/ix8cKRAzyUi3tbSOkyYYecDvasfVZLaw==;24:P3t3HQ1ysSF+MT+7iXfK35FoLZXCRemdhYwyuVEpUvWigiYFy4N63eo+ffQjRi0f2jb0cN5tbcz96kCEnzAu2XhWTy+gnb12MZFKadUODv4=;20:A+CoJPVTqvzLhBSgNFAT9BtB8AYeDJxhof8kSWG4HqOkNoRURv3a8QCArufOCxCkCWe3QGpwJtUyDuEKjIzYjfnQjHnPyzxgUeOPfJ3FkJVyZzb3MMQfm5sr+Fcskpzbu2WIHz+SQCTVJPq47rhzGlC7PJRMPupa+GeYfJ2stLU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2015 00:20:59.1437 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB1012 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1352 Lines: 38 Hi Eduardo > > 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); > > + > > 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. Indeed. will do in v5 -- 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/