From patchwork Tue Apr 10 12:42:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10332993 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B3E2160365 for ; Tue, 10 Apr 2018 12:45:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4ECE27FAE for ; Tue, 10 Apr 2018 12:45:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9991228BC4; Tue, 10 Apr 2018 12:45:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 272F628826 for ; Tue, 10 Apr 2018 12:45:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753765AbeDJMod (ORCPT ); Tue, 10 Apr 2018 08:44:33 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:57810 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753755AbeDJMoa (ORCPT ); Tue, 10 Apr 2018 08:44:30 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20180410124429epoutp03c3e4c4ef792e361065b4b73882650e91~kE7tJOy5V0588705887epoutp03w; Tue, 10 Apr 2018 12:44:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20180410124429epoutp03c3e4c4ef792e361065b4b73882650e91~kE7tJOy5V0588705887epoutp03w DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523364269; bh=kBpPC48X7W9GTSx66cWCxoS8OQY3su+NhZjESHtEJqg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=d8Fwp0nP4ctqTqnurIHF7flZF1LckKdwCEnEAFqiYx59hVM27jTNgI/0Jmdv+ccUB GG88v+rkxYpS91Cw1Q5/X32CNPKFiPEayA+4llUbA9apjItw81KDNcBFI41NqQH8Xj 1455GhXqe6XQ8WGxbftOjyHrwaMZRsr2oN3/zf0s= Received: from epsmges1p5.samsung.com (unknown [182.195.42.57]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20180410124428epcas1p3bcd0d1c0b0bafef0efd35c7428de497d~kE7sjDGr_0327603276epcas1p3c; Tue, 10 Apr 2018 12:44:28 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 34.6F.04084.CA1BCCA5; Tue, 10 Apr 2018 21:44:28 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20180410124427epcas1p371389bc9fdfa2f1582950b68a9121caf~kE7reb51P0534405344epcas1p3V; Tue, 10 Apr 2018 12:44:27 +0000 (GMT) X-AuditID: b6c32a39-579ff70000000ff4-1a-5accb1ac6cba Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D0.41.03849.AA1BCCA5; Tue, 10 Apr 2018 21:44:27 +0900 (KST) Received: from AMDC3058.DIGITAL.local ([106.120.53.102]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P6Y00EUVZATQUB0@mmp1.samsung.com>; Tue, 10 Apr 2018 21:44:26 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Zhang Rui , Eduardo Valentin Cc: 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 13/17] thermal: tegra: enable/check sensor after its setup is finished Date: Tue, 10 Apr 2018 14:42:07 +0200 Message-id: <1523364131-31059-14-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1523364131-31059-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSe0hTYRjG/TyXnc0mp2n6NVFwKKWRF0j70hSFgiMa9F9hkM48qeRlbCoq BqapOVIMoXLOa4k1FHXNpjbF+yo1qpmK2kUz8ZIXGGlaYG7H/nu+9/m97/O+8FGYSEmIqaTU dFaeKk2WkAL85aCX3+nm9rFov95Ne9T+uJVAS2YjQC2lwziqnZgkUN8dE0D7C2sEeqvPt0V3 VQ04ero4z0OmbjWJzKVDAKk3Znlocb6MRMs6Z6R9Nk2i3e4aHPV8MYOwo0z+5gjJqL6Ok0yX 6jOP6ZgJYJ4YVmwZraaEZOYmDSRTWrBBMmU6DWD0kzUY8/rRDs4Yp/W2jFnrdlkYLTgfzyYn ZbJy39BYQWJb8Xsgm6Gy2usWeHmgmacEfArSZ6DqYQdQAgElojsB3MtrJLnHDoDNW4YDh7JS E1UCS4OIfgVgW1EEx+wBuDw4TlgMkg6CD4o1Vt6RjoS6ZsrCYHQlDrfmhjEL40BfhYVjBdZk nPaE7U311rqQjoCV232HG7nBNyMV1pn8g/qfnk3CMgjSFTy4Vr1OctAF2P98COO0A1w16njc oi7w43AIxxcAuN1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NNGuzOndLi5+Hlt2/+n8l6Z5LOL40f4+sVJ+f7C86seEBf137SsdTsy3E/z3 yNmS4e3JW/cs9XNaPk6RmLn6u/vaZadufih5wxK9PfKEa/jTXau9FTyWXTXdpi789PKNXcUP 1RofKx8U53k719XKhF0xN33uA/aMB5KylSITVimxFGckGmoxFxUnAgB6hSNAdAIAAA== X-CMS-MailID: 20180410124427epcas1p371389bc9fdfa2f1582950b68a9121caf X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180410124427epcas1p371389bc9fdfa2f1582950b68a9121caf X-RootMTR: 20180410124427epcas1p371389bc9fdfa2f1582950b68a9121caf References: <1523364131-31059-1-git-send-email-b.zolnierkie@samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable/check sensor after setting zone->tz and programming hwtrips. Cc: Thierry Reding Cc: Jonathan Hunter Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/tegra/soctherm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index 9554613..81784b8 100644 --- a/drivers/thermal/tegra/soctherm.c +++ b/drivers/thermal/tegra/soctherm.c @@ -1400,9 +1400,6 @@ static int tegra_soctherm_probe(struct platform_device *pdev) goto disable_clocks; } - thermal_zone_device_toggle(z, true); - thermal_zone_device_check(z); - zone->tz = z; tegra->thermctl_tzs[soc->ttgs[i]->id] = z; @@ -1410,6 +1407,9 @@ static int tegra_soctherm_probe(struct platform_device *pdev) err = tegra_soctherm_set_hwtrips(&pdev->dev, soc->ttgs[i], z); if (err) goto disable_clocks; + + thermal_zone_device_toggle(z, true); + thermal_zone_device_check(z); } soctherm_debug_init(pdev);