Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp827073imm; Wed, 17 Oct 2018 08:55:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV62QxGC4EqVFP9JxeUWq2iI1LdLBShfzfjp4cbEYXxzWr5lvZlW5pJiZk2ZPDctHZ9BL9V62 X-Received: by 2002:a17:902:aa48:: with SMTP id c8-v6mr26936314plr.100.1539791716638; Wed, 17 Oct 2018 08:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539791716; cv=none; d=google.com; s=arc-20160816; b=PWaorJsJwO1osKJ+uakY3eOX47v9bRPDSp3bt8LH+eF1IVjAhUiJYgOhvKgV85oHNU 6knTAEhK3xFFBJnopXVZ1a6FModd+l7y4JUHK4HsUFLBKBoyR1q82/XWMTOAK5pzbZbB 3UJTLF7XuQLvLLaDegqx/q1QxMKy+9EbGcNWiBEA8Cwp2CzW2PKysMTJyGzg8XxnBlsz pFulmb8z2QWu4x9olOOp6yyFi/ntNduf/HPUXuwwWTX2b69zySa2f0/73BQEpR+7aVM6 ZxYedHaUZCDTPx11kmjtEH+CE44lQu0/kPHLrQzZbYN4j4H/DDhZy6QFi4PpDP7dGStW 2j4g== 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=iglxUMcPMhfUuAOYi+sNjf7vJUSJgka/85V7M93nyvo=; b=SyfzKQUj7HKC3jTm6y0evwTWOKZh82skUts5y5kYtZRXZ99e3HquLmzP1P2fVusr8r m57ZyuiGlYZFQjkQYKjqIWdSIjXZRO/P1sYNV9McHQ30t1EInTWsobUGvYR6Mfr7mZtU q6mowno9L9c+x0UP21/7CW2ZOvBtdkVejVhZ/lzwm5S2R6YDprPzCYRqk5Upk6CWLmMf /+Dor6UqY4AqNfzXue65yuR0MJn5jiciZsP7fRthEzlnInsUpedNGsC8Ysb2Bz02qJoX V2VTyws11b8DDbjrjNz1xCr6leIZ2EJU52J05hPF7Ad81gL3Gt6luDSsS9SeFJUZHfz4 WC/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=EACGM29p; 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 l16-v6si18035086pfb.69.2018.10.17.08.54.59; Wed, 17 Oct 2018 08:55:16 -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=EACGM29p; 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 S1728057AbeJQXu3 (ORCPT + 99 others); Wed, 17 Oct 2018 19:50:29 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:18354 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXu2 (ORCPT ); Wed, 17 Oct 2018 19:50:28 -0400 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20181017155406epoutp03538e316b4a990c068c5e462cf58fe10b~ecFgWozoZ1091710917epoutp03O; Wed, 17 Oct 2018 15:54:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20181017155406epoutp03538e316b4a990c068c5e462cf58fe10b~ecFgWozoZ1091710917epoutp03O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539791646; bh=iglxUMcPMhfUuAOYi+sNjf7vJUSJgka/85V7M93nyvo=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=EACGM29piTvSiEhaji4eos+8X4qK51JbT2mkk/T4h6aalTldLIuJnnC51nsckKNjO immpZDnPcgdyoCNXh1PB5FeRYyJKWk8YZKjTk78y3voLTZ6lrqZLi+IYWjHBISUcED S+PWwkAsuH0AkQtQ0mEJb/Egcjn/pZsTQxM9JLuA= Received: from epsmges2p4.samsung.com (unknown [182.195.42.72]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20181017155405epcas2p476aa1492bd61ab944ab4b6a3dd14c842~ecFfuBoPz2479824798epcas2p4r; Wed, 17 Oct 2018 15:54:05 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id EE.4F.04069.D1B57CB5; Thu, 18 Oct 2018 00:54:05 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20181017155403epcas2p1ed9777e96c6b2c77c2c5b67466be9843~ecFeBb2NA1266212662epcas2p1Y; Wed, 17 Oct 2018 15:54:03 +0000 (GMT) X-AuditID: b6c32a48-e59ff70000000fe5-05-5bc75b1dc546 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 44.44.03633.B1B57CB5; Thu, 18 Oct 2018 00:54:03 +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:03 +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 08/17] thermal: qcom: tsens: enable+check sensor after its setup is finished Date: Wed, 17 Oct 2018 17:52:34 +0200 Message-id: <1539791563-5959-9-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: H4sIAAAAAAAAAzVSfyyUcRzue/e+771uvXo74huLdeUPNkqjfadm2TTfJat/2lrXlot3KI7d i+IP49xE7aQwOT9HoZuSC4exyY87STZdM0tIocKU3WRYiXv573k+z/Ps83y2Dy2WaUk3Ok6V zKlVyng5JSXa+rwDfY8oLIqT602eKDuzVoSanzSRaN5mAeiFboBAVR/HSNSTZQVo6+siiYZM GhHS6msI9HR2RoKsneUUsun6ASpfnpCg2Zl8Cv1ocUXGhnEKrXdWEqh7ygbOybDml5nC+un3 FO7QT0pw66dAXNv1U4SNhjwKfx7rorAue5nC+S0GgE1jlWI8WLJGYMu4SYRtRo/LzDXp2Wgu Pi6VU58IjpTGvnkwIErapO6acivEmWCJvA8caMgGwA+Tq9tYSsvYdgBzXveKBbIG4JcyPbHn yl0pogThFYCLOVVAIBsATi48FO+4KDYIPrpn2BZo2pkNhy2N9M5YzA4Q8JvNe2fsxCrhYL3d TbBeUPOu0I4ZNgx2dzdIhF0e8K250N7OgcVwZKvavheyJRI4M7EIBFMobNP8EQnYCS5YWnbD 7nDe0Ax2AwAubTwjBNIEYOOweTdxBvZZRkmhnSPM7fsr2WkHWQbm5sgEC4YldXX262VsGYBD LyUF4HA12GcALlwSnxDD8aeSAvx4ZQKfoorxi0pMMAL7b/jgdtAzcrEXsDSQ72faXcwKGalM 5dMSegG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v3hot++vGx6dYlm3Vzptu3PW8JFfkvs0mVIzlCQ+awEktxRqKhFnNRcSIAY1i+L3wCAAA= X-CMS-MailID: 20181017155403epcas2p1ed9777e96c6b2c77c2c5b67466be9843 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20181017155403epcas2p1ed9777e96c6b2c77c2c5b67466be9843 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 tmdev->sensor[i].tzd and calling chipset specific enable operation. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/qcom/tsens.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index dbd2556..01bff96 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -105,13 +105,13 @@ static int tsens_register(struct tsens_device *tmdev) if (IS_ERR(tzd)) continue; - thermal_zone_set_mode(tzd, THERMAL_DEVICE_ENABLED); - thermal_zone_device_check(tzd); - tmdev->sensor[i].tzd = tzd; if (tmdev->ops->enable) tmdev->ops->enable(tmdev, i); + + thermal_zone_set_mode(tzd, THERMAL_DEVICE_ENABLED); + thermal_zone_device_check(tzd); } return 0; } -- 1.9.1