Received: by 10.213.65.68 with SMTP id h4csp3853641imn; Tue, 10 Apr 2018 05:48:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+i7ZX1v80jP0acJqmejHo0MjMEqDjahv1xRiZRSAh88yzyq6iT2sQkLd5xoHXeMoV4EkAG X-Received: by 10.99.111.3 with SMTP id k3mr192675pgc.135.1523364523040; Tue, 10 Apr 2018 05:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523364523; cv=none; d=google.com; s=arc-20160816; b=Qot/28etectSKBi5nwR35kZ7sBedTIlocmU8Ks1tW8vttIaRUb1X148XroJH8uPsrr 3JMJUFtKcCnAnv2qJdIMy7nKWWDy07Tb6oAxcfKyqINWyHerpE4blTaWqrKNAOlGgN1/ flqhYOuUko3k6wR9C76k8mNSKEUn3UQaGhgWjCjyu/gU9V0c8+nPtFBs44Qjl7ZAEuYK aGdC92LU6WWoLgKecCKJENdZuHLphYNFmbHwQGjYMtYHichPhuUDQUpsT2Bdene60CnD Rt9vSalK2uxIPpMir+jgza0VZuHTZbubL22j/G0K137Pk0E7Fg/Q1IC0mW9hNy91HT4R cccQ== 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 :arc-authentication-results; bh=kBpPC48X7W9GTSx66cWCxoS8OQY3su+NhZjESHtEJqg=; b=nlW7X6mmYdTq48YUJlpEoAj616zrQ74yrhmdH794Ec8PYEyUmC4SgX2SD5OZqKRNhR x5+gRaxql/G4eKYmxqLx2f/VudsxRWES1+yslcjs4LcoZpS6ghhaL2TClLnEpE/g2svb ltIzk0775az3dlTssy/3UTGLjV7+4o3PL1E26xwrFpHwSm7hHguaIcT7enJh9Tk8IE+T DJmJ+J9ro8RR/GL6OFFKCrNrSm6APa1EVIsKaiKeOiCJu0fYTKCy5dKbqS8X/UsVZXdh X6qN7KM7U+R/JKomeoiifrI/1qZaCZVbq/8hzLRilmbZ5eG2qZr/JPXHrfj6A64tDU8Y Dz6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=d8Fwp0nP; 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 r26si1832200pgu.422.2018.04.10.05.48.06; Tue, 10 Apr 2018 05:48:42 -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=d8Fwp0nP; 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 S1753782AbeDJMod (ORCPT + 99 others); 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 oi7w43AIxxcAuN1pOGTKATS0ijgdDAeNH6wBGG0PN37dJ7heIbxXdIgwsOlbPcHpcFjYZYmy HKwGcKq4AZQDcR2w0QAnVqZISWAV/rIAH4U0RZGRmuBzIy1FC6w/xPtcJxh5FzUAaApIjgjL +0ejRYQ0U5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KhF0xN33uA/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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 1.9.1