Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp828573imm; Wed, 17 Oct 2018 08:56:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV63N4iP7mih1fEGmLgQqiOxv7TwWdiQgQKByOWWUcRwuN0iZ1gFh1IMmeTjd8WccthYvV+F3 X-Received: by 2002:a17:902:b7cb:: with SMTP id v11-v6mr26376186plz.79.1539791803464; Wed, 17 Oct 2018 08:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539791803; cv=none; d=google.com; s=arc-20160816; b=S7r6qUwACwa2w9CRoIQoR4bEsJuCw2GuyjGZyWfaCRaSqRMQ7gQInU5AhqXcQyqABK HU/5qfVRrjFh/F+hN9yIBRKrAWmT1o1aQ0vEy3u7pUMR0KherMsVTiX8ARj44xs0WvVe v70xqsH7CKteeU1whyfuJPaBqSr8+1iRokkjJYI4K5/w/IjCk7lf4XqcGNC1Xu1VMuPS IMo+5v5ZoRPeKwG98AtPUeirScy9FPcMgReirI064o+EHLvjdjVbCLG8bd9v0uKU5/Wl Y7r9c7iO2EqPUXfTEWQ/H0iVJ+0afMQRqCxXHdkM1elyV1oqdj0rQE+1ispsZZOA8yMT 9qWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=CNGKVTRYfXVdSjJbQ49PGA9Orip/uVvSegZ9MuPr7to=; b=bo1Ya1t25geznN78++2RVC8jH3FBQsAaVAWIqLFhyPpX9sE0s1UP2dU1EXebNk01nc rUBFa+RWRTE78B9BaTXMP3PZmueet2Wdj0rhx5Rg5Bu6Q8BSPjs7McBGA/o0RXeP1NlM c92IiBVTZIOOXJ5oZtMKO4CrdzHZ28mFh8Py4t52P28wyTtGi6nkiNec5fugZXBav1hz HDluDLfkeZVLaFaNZ/o8jfYieS1lIYHvuVPZ/HaPSBjCY8LOjZ3m4mGwOM8UM1ZaCb+1 oMuO8e6H4RVu8vRytgN209gsJG3i/xCFKyjbHDtNY1UTGh7Luixad3LuXCbu6mEz71cl VcWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=MKuQRRcq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5-v6si17993903pgk.300.2018.10.17.08.56.27; Wed, 17 Oct 2018 08:56:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=MKuQRRcq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728088AbeJQXuk (ORCPT + 99 others); Wed, 17 Oct 2018 19:50:40 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:63366 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXuj (ORCPT ); Wed, 17 Oct 2018 19:50:39 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20181017155418epoutp01ef3021c391a5f319ee502bad01c5d14e~ecFrXvXo62806228062epoutp01l; Wed, 17 Oct 2018 15:54:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20181017155418epoutp01ef3021c391a5f319ee502bad01c5d14e~ecFrXvXo62806228062epoutp01l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539791658; bh=CNGKVTRYfXVdSjJbQ49PGA9Orip/uVvSegZ9MuPr7to=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=MKuQRRcqdRLILgzdDUx3y1eFmPocBxsR3Bo1neSXEuOcR3KGhnrojLNDyL5PG2UVU ItOui/IlRHZTzMo2kGduyfhcfFkE2zANDhNNRhIYcWu0lUGdWf7cmz541TFhMT9qpW 1ykSjLrH6kdCZbnaHuIw5ePwXEqJF4f1anyXHk18= Received: from epsmges2p1.samsung.com (unknown [182.195.42.69]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20181017155417epcas2p34f8c248193156f5f60af69e400620d32~ecFqftACi0461104611epcas2p3Q; Wed, 17 Oct 2018 15:54:17 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 38.67.04015.92B57CB5; Thu, 18 Oct 2018 00:54:17 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20181017155416epcas2p32f63571e9c06cd1aba2b40bcf23de8e1~ecFpk1h501998019980epcas2p3w; Wed, 17 Oct 2018 15:54:16 +0000 (GMT) X-AuditID: b6c32a45-6c1ff70000000faf-14-5bc75b29991d Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id A6.44.03633.72B57CB5; Thu, 18 Oct 2018 00:54:16 +0900 (KST) Received: from AMDC3058.DIGITAL.local ([106.120.53.102]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGR00KZM2SD3M00@mmp2.samsung.com>; Thu, 18 Oct 2018 00:54:15 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Zhang Rui , Eduardo Valentin Cc: Amit kucheria , Eric Anholt , Stefan Wahren , Markus Mayer , bcm-kernel-feedback-list@broadcom.com, Heiko Stuebner , Thierry Reding , Jonathan Hunter , Keerthy , Masahiro Yamada , Jun Nie , Baoyou Xie , Shawn Guo , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com Subject: [PATCH v2 10/17] thermal: rcar_gen3_thermal: enable+check sensor after its setup is finished Date: Wed, 17 Oct 2018 17:52:36 +0200 Message-id: <1539791563-5959-11-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1539791563-5959-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSa0hTYRzGfbdz22pxOkq+KlgtxAtpXrLeMsoPGQcqunyrfcihpynexqaS 1oel4Q0Ul6TmrakVugxzrLxnzbZlqHgJ0dLEC+I9bKSmhTmPfvv9n+f5839eeCkhk4a7UtHx iZwqXh4rJcTYu07vU77eMqvMvzUfR+maagFqKK7H0YzNCtDrXDOGnn0dwtGHh4MAbU0u4OhL Y5oAPSqpwtDz6QkSDbaUEciW+wmgsuXvJJqeyCPQrNEZGWqGCfSnpQJD7T9sIJRh035aCLZk vIdgm0vGSPbtt2C2um1OwBr02QQ7OtRGsLnpywSbZ9QDtnGoQsh+LlrDWOtwo4C1GdyvS26L z0VysdHJnOrE+XBxVJ1VgysrqXulRbVAAzaJHCCiIH0SZo/NkTlATDF0E4AV7euY3WDoNQCr yrz2QrrCbsDrbwAczlTxCxsA1vSvknaDoM9CbaZ+O0RRTvRlaKyj7LKQNmNwyuZtZ0daAZd7 tDuHMdoDDkyadlhCs9Dc9XG3kDvsshTgdhZt671bul29gIRDJQ94vgiXRtIFPDvCeauR5NkN zugbgL0bpIsAXNx4gfFDPYB13ZbdjRDYae3H+XYHYFbnP9JeGtISmJXB8BEW1vatkfyDSwHc 0sF84KIDDnpwiFOq4xScOlAZ4KeWx6mT4hV+EQlxBrDzM3zCmkBx7x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hzt8p8R8O99xNk+1PPqRRO eTV/6uxvX09vZ2R9vKH9cdeFfcaxMqyCDhvCt81SYinOSDTUYi4qTgQAaU2JQ3wCAAA= X-CMS-MailID: 20181017155416epcas2p32f63571e9c06cd1aba2b40bcf23de8e1 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20181017155416epcas2p32f63571e9c06cd1aba2b40bcf23de8e1 References: <1539791563-5959-1-git-send-email-b.zolnierkie@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable+check sensor after setting tsc->zone and checking ntrips. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/rcar_gen3_thermal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c index c72453e..eb50f33 100644 --- a/drivers/thermal/rcar_gen3_thermal.c +++ b/drivers/thermal/rcar_gen3_thermal.c @@ -421,9 +421,6 @@ static int rcar_gen3_thermal_probe(struct platform_device *pdev) goto error_unregister; } - thermal_zone_set_mode(zone, THERMAL_DEVICE_ENABLED); - thermal_zone_device_check(zone); - tsc->zone = zone; ret = of_thermal_get_ntrips(tsc->zone); @@ -431,6 +428,9 @@ static int rcar_gen3_thermal_probe(struct platform_device *pdev) goto error_unregister; dev_info(dev, "TSC%d: Loaded %d trip points\n", i, ret); + + thermal_zone_set_mode(zone, THERMAL_DEVICE_ENABLED); + thermal_zone_device_check(zone); } priv->num_tscs = i; -- 1.9.1