Message ID | 1523364131-31059-9-git-send-email-b.zolnierkie@samsung.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Eduardo Valentin |
Headers | show
Return-Path: <linux-pm-owner@kernel.org> 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 0E82060365 for <patchwork-linux-pm@patchwork.kernel.org>; Tue, 10 Apr 2018 12:43:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F20F328BC4 for <patchwork-linux-pm@patchwork.kernel.org>; Tue, 10 Apr 2018 12:43:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6B3628CDA; Tue, 10 Apr 2018 12:43:58 +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=ham 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 2EF0728BC4 for <patchwork-linux-pm@patchwork.kernel.org>; Tue, 10 Apr 2018 12:43:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753550AbeDJMnz (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Tue, 10 Apr 2018 08:43:55 -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 <rfc822;linux-pm@vger.kernel.org>); 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 <b.zolnierkie@samsung.com> To: Zhang Rui <rui.zhang@intel.com>, Eduardo Valentin <edubezval@gmail.com> Cc: Eric Anholt <eric@anholt.net>, Stefan Wahren <stefan.wahren@i2se.com>, Markus Mayer <mmayer@broadcom.com>, bcm-kernel-feedback-list@broadcom.com, Heiko Stuebner <heiko@sntech.de>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, Keerthy <j-keerthy@ti.com>, Masahiro Yamada <yamada.masahiro@socionext.com>, Jun Nie <jun.nie@linaro.org>, Baoyou Xie <baoyou.xie@linaro.org>, Shawn Guo <shawnguo@kernel.org>, 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/bz4o4BuGj5AV1qmeLTRcIOgRx0Wgi7ImSXoQpMB0C2OMozueb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Vmski0TX0KFhcWiJO4djsepJxFQFXixNKfbCA2 r4CHxNaf61gglslJnDw2GWwxp4CnxO+971lBWoWAar5NsZ7AyLOAkWEVo2RqQXFuem6xUYFR Xmq5XnFibnFpXrpecn7uJkZgyG87rNW/g/HxkvhDjAIcjEo8vBMOno4SYk0sK67MPcQowcGs JMKbs/ZMlBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXFe/vxjkUIC6YklqdmpqQWpRTBZJg5OqQbG 0gPfWDt0pvtX7NmhHxsjt03BLbp/qt3UWQff5vHX7ryYd4/jSZblipn603sCu9WkbrBvq2Kc eml7xrZS6SBhaQvrLE1rqYx7yXN+XZa333mMg+P1le+8OjbLH+166Hm8deezG+/MH2gmzHJQ WLYlxY7r5lWzNNt+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> <CGME20180410124348epcas2p3ca37509a4054ba323bc40080b86b842c@epcas2p3.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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; }
Enable/check sensor after setting tmdev->sensor[i].tzd and calling chipset specific enable operation. Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> --- drivers/thermal/qcom/tsens.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)