Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp828838imm; Wed, 17 Oct 2018 08:57:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV62TBq331Oi/SWymP4y7Cxrx+ie9pW5tkIbPVJRCFoteQACdBcTIvkujqJr1lLfHItpxv/l3 X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr26832014pfd.185.1539791821851; Wed, 17 Oct 2018 08:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539791821; cv=none; d=google.com; s=arc-20160816; b=ltQY7X718myGV5yIbOAnKMtzaaW7JbcK9O/1r+vgUsBDLJVSdUVFX6HCY+UhW0szZd WCaTzz/HZe0jDMOTzLwbV5FzA/KDamnBodp4I0lKQi4NoUGdVqaUj5eubereaVMyLqqL fI9Bfme6vNS6apaKzdr2psMSEa8njrr9eoJpjhmRcqTT7oJ0C/SJ8/D2k6aN8jZbWJD9 qujxLSOb3guQe0YAqAvu3OnL8yltiSdw9d/fDrR02EY8m6d93LHioI6/i8cYe3HjBRh+ oCR0IWSMats8k/8f5g0kSecPll1tdd29f80z0OImC3TCZhm518653WYZBb0suYCdX1Q1 2QBA== 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=q0417HQ33V8ssuZYKNqKRW9dtdIEQNq9i6uyn1Jgybk=; b=D7hOKRslP0XHZ9hCFtCC3PD/nQxPQmfBJdz2qY2q/FzD9gFWkmA3UeOzAYnoGiIXCT SaI5Tn9jhQTONIUXN/GfQ6Q1S/q9Sd0cEK6flpnJxVnk4KCLnIqPUHJPXoyzAmsVLrix /O51rPsnMQeKOMFy5i/Arq0zdIHgYwlz1TCnuhlH8PR/HhRr2llVPsn+jQSPdzM96d4F lue2slkiaDaPLTADtCAw48fi3aGA32VOdP3klsgyTWFCl7TiAvYqsaVZ1CscStBL7FAX H2Q+XNrCdPT+bDafsPrO2CBzRAqBePZqVrQq3qtmBtQPzf6RsHcyHdYaMupVyerBiW5N D+ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=r7QTb6dO; 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 q8-v6si18131354pgc.347.2018.10.17.08.56.46; Wed, 17 Oct 2018 08:57:01 -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=r7QTb6dO; 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 S1728128AbeJQXu5 (ORCPT + 99 others); Wed, 17 Oct 2018 19:50:57 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:63425 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXu4 (ORCPT ); Wed, 17 Oct 2018 19:50:56 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20181017155435epoutp01feea25e17fef6f07078a495b592bef70~ecF7ul2Uj2806228062epoutp01o; Wed, 17 Oct 2018 15:54:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20181017155435epoutp01feea25e17fef6f07078a495b592bef70~ecF7ul2Uj2806228062epoutp01o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539791675; bh=q0417HQ33V8ssuZYKNqKRW9dtdIEQNq9i6uyn1Jgybk=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=r7QTb6dO7IWX72v3DhAxiIESnRuUH5zFXVud5Eu718ju5+d+G+yW2Iha0J5y9YGYK 5oiq5ux11pKB37LODzbpxq9H9Q8eW7CKkAkXCIMLbVQQ6Wp/QutnQg/GtAXbdj6BhS OkmR0WASf7/MpEIvu3d3jO1LyvbZjC/Ymi9kfTSQ= Received: from epsmges1p2.samsung.com (unknown [182.195.42.54]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20181017155435epcas1p383f48a2d3cb5b81fccb4a06ea948ecd7~ecF7VRzTG0486304863epcas1p3g; Wed, 17 Oct 2018 15:54:35 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 59.4D.04078.B3B57CB5; Thu, 18 Oct 2018 00:54:35 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20181017155434epcas1p33a6de1fda3c69cc966f954796a95a935~ecF67ZgmI0883908839epcas1p3a; Wed, 17 Oct 2018 15:54:34 +0000 (GMT) X-AuditID: b6c32a36-b3dff70000000fee-05-5bc75b3b1c4a Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1B.A6.03743.A3B57CB5; Thu, 18 Oct 2018 00:54:34 +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:34 +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 13/17] thermal: tegra: enable+check sensor after its setup is finished Date: Wed, 17 Oct 2018 17:52:39 +0200 Message-id: <1539791563-5959-14-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: H4sIAAAAAAAAAzWSfUhTURjGO3f33l2ta7cpelIQWkVoqC0sTloRkXHDAqH/2h829KKi07Gr koriV2nTSSJimKlomi3DD8zNj0CmbjnK8qNpmZo5QkvUmKIZuZxX//u97/O8PM+BQ4kkeYQ3 FZeYzKkTFQlS0hXv7PcLDAiVm+VnVnoPorzsegy1PW4h0A+7GaBX2kEc1YxbCdSXMwaQ4/sv Aln0uRjKr6zD0TPbnBiNdVeRyK4dAKhqeUqMbHMlJFro8ELtTZMk+tNdjaM3M3ZwRcLmrphI tnL2Pcl2VU6L2ddfzrH1vYsY2657SLJfrb0kq81bJtmSDh1g9dZqEfu2YgNnzZN6jLW3+0bQ d1wvRnMJcamcOujyXdfYmno9UK1R9zTdPUQ2MIk1wIWCTDAsMjtwDXClJIwBwO1qCyEMGwAu VVvJfddmiUMkCK0AWuvrCKcgYbYANG7fcjLJhMDSAh3QAIryYMJhRzPlXIuYQRzO2/2c7M7I oanFsJuMMyfhYF+5yMk0w8ImzTghZPnCIVPZLrvs7IcdtXsdKsRwqTRL4Guwc/YFJrA7/Gnu EDtjIeMDRwcvOWvu2Hf6bzXgwtACYPM7095BKOw3jxBCOTe4vF5MCMc0LHwgESwsXJvSYcJ7 nwC4UFuGPQJHa8EBHfDkVLwyhuNlqrOBvELJpyTGBEYlKdvB7tfw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iTrgUyvra3cz0/7evPKa ik7LTbPusVs+0FhcmZ3jVyzc2FrVKHzq4sG03uszvgkqsRRnJBpqMRcVJwIATPVN/3wCAAA= X-CMS-MailID: 20181017155434epcas1p33a6de1fda3c69cc966f954796a95a935 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20181017155434epcas1p33a6de1fda3c69cc966f954796a95a935 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 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 2ac9f81..394b34e 100644 --- a/drivers/thermal/tegra/soctherm.c +++ b/drivers/thermal/tegra/soctherm.c @@ -1375,9 +1375,6 @@ static int tegra_soctherm_probe(struct platform_device *pdev) goto disable_clocks; } - thermal_zone_set_mode(z, THERMAL_DEVICE_ENABLED); - thermal_zone_device_check(z); - zone->tz = z; tegra->thermctl_tzs[soc->ttgs[i]->id] = z; @@ -1385,6 +1382,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_set_mode(z, THERMAL_DEVICE_ENABLED); + thermal_zone_device_check(z); } soctherm_debug_init(pdev); -- 1.9.1