Received: by 10.213.65.68 with SMTP id h4csp3852947imn; Tue, 10 Apr 2018 05:48:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/zv9B3R7ElLyINpJ0pCYm9YbbQ6cutrhzTBCnjaLqFbrhbVWN6oy5zJ+kn2GK7rzG0b4+b X-Received: by 10.99.53.130 with SMTP id c124mr182511pga.233.1523364484364; Tue, 10 Apr 2018 05:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523364484; cv=none; d=google.com; s=arc-20160816; b=siVy6jB/qRGyt9ig6Ybe6iOPZUkA8b8fg8mE9gesqCJPQwT/qvk8p4ip8IU3SSUauJ pmBqRzFlGLyFrCdQsCOMrIAJPD2Y7Q02uVXftRuMiQhajPPbS9rUrv9z5CRDw6EeFg1v ODUIJ/YFgKRdETrNHqVJiZs3hYDT7Q9tSXno1YK8NVRJM4+d2b5pCq7+YcG4INpvolas uCpYRbfM/IM540385iDMoSvXNzVZdFR5oDBqNRGLfFn42zj50ns/OYUqybiwRqNPdtxS RHWNVxUaSjtJyIOTEHU2QiXCoGaF5Qz7skFJR+xVYNT32lZ7b4hDCc6Qwzcd59R1Rt7X lqHg== 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=ruDg0j/HPB1qgOLU5cAuSFLyUeGXbOIrhkE//NlMwLE=; b=gHgjcIXQKc5CdkiplKQE/2szjbLCgbdECkewgn+VyBVPhx70GjpeEc5VPsae7Uiz99 2ZYpeuQy+eQJoShBtRUPy5c9JQdm56TAdkbvsiUYabWg4r/CtmqSCPtvL5Akoo3hDwHw 6TH5TZmSCa9U4Sx8bxWm8ID8l95fvLg+gHWDBzyCOLNeKlgYQ7Iodg64aQjwNm77iWIF wr7cZVAIEChPqTigTCY1UsaNPqSzCT8P8LFScF20BDuei1oksrQ8liCvqKNNXCGdIxmx WACWJMtMRkq1TSifpWlVZ5BjIACCujPiBO/KkQlIiv6VL/mwOWVW7PkKtyz1/S6n7liu sXvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dD/6YP8t; 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 bc11-v6si2495516plb.43.2018.04.10.05.47.27; Tue, 10 Apr 2018 05:48:04 -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=dD/6YP8t; 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 S1753580AbeDJMn4 (ORCPT + 99 others); Tue, 10 Apr 2018 08:43:56 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:57510 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753543AbeDJMnu (ORCPT ); Tue, 10 Apr 2018 08:43:50 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20180410124348epoutp0309a8d209531412d9b2004bc8abb979a3~kE7HgKHL80547905479epoutp03w; Tue, 10 Apr 2018 12:43:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20180410124348epoutp0309a8d209531412d9b2004bc8abb979a3~kE7HgKHL80547905479epoutp03w DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523364228; bh=ruDg0j/HPB1qgOLU5cAuSFLyUeGXbOIrhkE//NlMwLE=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=dD/6YP8tw5YDO83LeG+oMsH/nHPliQvBeOShcqDXxZ/ools9PsB94jcQDaRPRpqhK bN/0lyLwnWmTBPJDq8YgKHlKjnzyhvnE96/EQgrZZNgCmvasARXrbar1TrX7QN9opO d467K7Xf5WxLuBGnTy+s27j59YVMB7q8AWgLIQ/U= Received: from epsmges2p4.samsung.com (unknown [182.195.42.72]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20180410124348epcas2p42fca7a79027cff40f918b5d86e9033a1~kE7HSjzKI2644226442epcas2p4P; Tue, 10 Apr 2018 12:43:48 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 00.36.04082.481BCCA5; Tue, 10 Apr 2018 21:43:48 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180410124348epcas2p3ca37509a4054ba323bc40080b86b842c~kE7HC159x0880708807epcas2p35; Tue, 10 Apr 2018 12:43:48 +0000 (GMT) X-AuditID: b6c32a48-8c1ff70000000ff2-7b-5accb18420bd Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id AB.2E.03827.381BCCA5; Tue, 10 Apr 2018 21:43:48 +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:43:47 +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 08/17] thermal: qcom: tsens: enable/check sensor after its setup is finished Date: Tue, 10 Apr 2018 14:42:02 +0200 Message-id: <1523364131-31059-9-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/XbOzo7DxXFafmj4xyoiS2th8WURJiInKpIIognaIU8q21Q2 NTWIecnWUrOim4pputDhJcfUZbNkXqZmiS2WqF0sMbW8ISkadtmO/vd7v+d5v/d54SUxcT7f l0xITGFViYxCQgjx5o5dBwNzG/tl+77NbEaNDxv4aGLRBlBdQReOHr938FF7lh2gv19/8FFf SzYP5RY/wVHV+JgA2VtLCbRY0AlQ6eyIAI2PFRJo0uSDjNVDBFppLcNR26dFEOpJZ891E3Tx 5zcE/bz4o4BuGj5AV1qmeLTRcIOgRx0Wgi7ImSXoQpMB0C2OMozuebCM07ahFh69aPSPFMmE R2JZRUIaq9p79IIwXlu/AJLHiPTWknqBBrzj64A7Calg2GtaFeiAkBRTZgCb9S0EVywDeK/g Jb7hKrxWjnHCCwCze5v5XLEKoKbE7nIRVAi8fd0AdIAkvakT0FRLOj0Y9QiH86NdmPPdi4qG jpEYpx2ndsAe/QrhZBFFw6aV+vVh/rC3+64rnjt1HP5um3PNgtQtAXT8vLOeOxz+yR8AHHvB aZtJwLEfnDA0Aq4hB8AlswXjhCIALQ1ijg/DDtug6yOM2gS1HWsCZzhIiaA2b91Cw8m8fh7H x2DtM/P6wqUAzuSN84qAbzlwM4AtbLJaGceq9ycHB6kZpTo1MS7oYpLSCFw3EkCbQfvbk1ZA kUDiIUKvXsv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lxY7r5lWzNNt+1/9BbTbe0koBO870GeopsRRnJBpqMRcVJwIAFPf+X3UCAAA= X-CMS-MailID: 20180410124348epcas2p3ca37509a4054ba323bc40080b86b842c X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180410124348epcas2p3ca37509a4054ba323bc40080b86b842c X-RootMTR: 20180410124348epcas2p3ca37509a4054ba323bc40080b86b842c 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 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 0d119c1..da44494 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -102,13 +102,13 @@ static int tsens_register(struct tsens_device *tmdev) if (IS_ERR(tzd)) continue; - thermal_zone_device_toggle(tzd, true); - thermal_zone_device_check(tzd); - tmdev->sensor[i].tzd = tzd; if (tmdev->ops->enable) tmdev->ops->enable(tmdev, i); + + thermal_zone_device_toggle(tzd, true); + thermal_zone_device_check(tzd); } return 0; } -- 1.9.1