Message ID | 1523364131-31059-10-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 B3B7C60365 for <patchwork-linux-pm@patchwork.kernel.org>; Tue, 10 Apr 2018 12:46:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5A5E28826 for <patchwork-linux-pm@patchwork.kernel.org>; Tue, 10 Apr 2018 12:46:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A57A28CDA; Tue, 10 Apr 2018 12:46:07 +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=unavailable 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 3266828826 for <patchwork-linux-pm@patchwork.kernel.org>; Tue, 10 Apr 2018 12:46:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753599AbeDJMoB (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Tue, 10 Apr 2018 08:44:01 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:23133 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753595AbeDJMn6 (ORCPT <rfc822;linux-pm@vger.kernel.org>); Tue, 10 Apr 2018 08:43:58 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180410124356epoutp02fdf5561a44781019fa33442268bc1291~kE7OzXpYp0274802748epoutp02Z; Tue, 10 Apr 2018 12:43:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180410124356epoutp02fdf5561a44781019fa33442268bc1291~kE7OzXpYp0274802748epoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523364236; bh=4/poJE3FWqJDIk+7upPDar8gIZUzHSrvr7aCDUgdTDc=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=W4l7lx84CHGgYTKnrSBtguns1/nWsmYU1R1B5O5EYK786FAXBJums3hVVoB4MZtYz l573UDEeo/Q39ICrriMEEhvnKsuMKsAtp23xYwV9XR/Gskq4n+4obR/AUNs92euznO TsHHP7TxGi0Cvt6iWDhlac82R51vr0MkD+gLEC3k= Received: from epsmges2p4.samsung.com (unknown [182.195.42.72]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180410124355epcas2p260705ff91cf3a15b327ec5a3d3d720a6~kE7OVB7oZ0601106011epcas2p2K; Tue, 10 Apr 2018 12:43:55 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 85.36.04082.B81BCCA5; Tue, 10 Apr 2018 21:43:55 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180410124355epcas2p272d4a06619ad3a3e58c792186069f0bc~kE7OIfezI1020610206epcas2p2K; Tue, 10 Apr 2018 12:43:55 +0000 (GMT) X-AuditID: b6c32a48-8c1ff70000000ff2-87-5accb18b4469 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 3D.2E.03827.B81BCCA5; Tue, 10 Apr 2018 21:43:55 +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:55 +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 09/17] thermal: qoriq: enable/check sensor after its setup is finished Date: Tue, 10 Apr 2018 14:42:03 +0200 Message-id: <1523364131-31059-10-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: H4sIAAAAAAAAAzWSbUhTYRTHfXbv7q7S6jZNH18wGCllaC8YPWmIkuAVi4owY0U29KLS5svu NO2TaZhaM8VAk6WZJjZcwzXdspm65Uu+gRm+pFYLE03ScKBlSrlNv/3P+f/+55wPh8QED7he ZEqqnJGliiVCwgVvNR86GXi/eVB0dGj8FGqu1HDRnLUXILWiG0c1H8e4qPPOKED/vi1yUb8+ j4PuVj3DUf2shYdG25QEsireAaRcmuKhWUsJgeZ1HkjbOEGgP23VOGr/bAXhe+m85R6Crvoy RNCvq2Z4dMunE3SdcYFDa1VFBD09ZiRoRf4SQZfoVIDWj1VjdF/F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as4QCpYRaYySLRNvUpI0iNsECExMP5B8CmsgioSvz4NA+s l1fAU2LbscVQ2+QkTh6bDGZzAsV/733PCjJTSMBD4tsU6wmMPAsYGVYxSqYWFOem5xYbFRjl pZbrFSfmFpfmpesl5+duYgQG/bbDWv07GB8viT/EKMDBqMTDO+Hg6Sgh1sSy4srcQ4wSHMxK Irw5a89ECfGmJFZWpRblxxeV5qQWH2KU5mBREuflzz8WKSSQnliSmp2aWpBaBJNl4uCUamDs C6xe7DZJVl/kVAhLqM3asPmd1x/o3Ky57ytrW3r/bPXilYbpDU+fn/keuvC2XljQgo8Rcxgn rTnonHvbPp9/k47xxMNftu2eobt0053vz+wbXTdqzr82PffJD+HmxrcGT+P9BYvnRNzosik5 EuV9zzAh66HlKdbVd79tmqD0xi1fiH+CwZxoJZbijERDLeai4kQAyP6+bHYCAAA= X-CMS-MailID: 20180410124355epcas2p272d4a06619ad3a3e58c792186069f0bc X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180410124355epcas2p272d4a06619ad3a3e58c792186069f0bc X-RootMTR: 20180410124355epcas2p272d4a06619ad3a3e58c792186069f0bc References: <1523364131-31059-1-git-send-email-b.zolnierkie@samsung.com> <CGME20180410124355epcas2p272d4a06619ad3a3e58c792186069f0bc@epcas2p2.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/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index cdd6f59..2695021 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -242,13 +242,13 @@ static int qoriq_tmu_probe(struct platform_device *pdev) goto err_tmu; } - thermal_zone_device_toggle(data->tz, true); - thermal_zone_device_check(data->tz); - /* Enable monitoring */ site |= 0x1 << (15 - data->sensor_id); tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr); + thermal_zone_device_toggle(data->tz, true); + thermal_zone_device_check(data->tz); + return 0; err_tmu:
Enable/check sensor after enabling monitoring. Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> --- drivers/thermal/qoriq_thermal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)