Message ID | 1539791563-5959-6-git-send-email-b.zolnierkie@samsung.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Zhang Rui |
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-2.web.codeaurora.org (Postfix) with ESMTP id 6FD8113B0 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 17 Oct 2018 15:53:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BCF1285D2 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 17 Oct 2018 15:53:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CD2928647; Wed, 17 Oct 2018 15:53:57 +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 296C6285D2 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 17 Oct 2018 15:53:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727989AbeJQXuI (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Wed, 17 Oct 2018 19:50:08 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:63290 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXuH (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 17 Oct 2018 19:50:07 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20181017155346epoutp01a97af298635505c65307adb5a6ef3caa~ecFOESDfM2806228062epoutp01h; Wed, 17 Oct 2018 15:53:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20181017155346epoutp01a97af298635505c65307adb5a6ef3caa~ecFOESDfM2806228062epoutp01h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539791626; bh=G9v961x7gTaUJ3IgOF7OjZMws+07qhAKZWxmjW9kIhg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=EyOrKyubSlC1adEZvBP44L/8wW/QYOTz4AfGQMX9pCrOaGAy54V3DEkyYhOgHJA8m OVNXda2rkrsHL/UPdrAaD8TcaZ8Ues6PRk7MAOCE8vTUNhOFXR5UblGnTBjo9PvEb5 w0xw8Av5zuFeUHac5Q3yVgjf5VEFvQaCgaJ0dBOg= Received: from epsmges1p1.samsung.com (unknown [182.195.42.53]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20181017155345epcas1p13d4067385b5ccdc39eb3691ec37c8b6c~ecFNTNsfv1224012240epcas1p1Q; Wed, 17 Oct 2018 15:53:45 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id DB.3F.04073.90B57CB5; Thu, 18 Oct 2018 00:53:45 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20181017155345epcas1p18dee37b9a46f2bf0b68aa3ded43f2717~ecFMq4zcf2660926609epcas1p1o; Wed, 17 Oct 2018 15:53:45 +0000 (GMT) X-AuditID: b6c32a35-69fff70000000fe9-b5-5bc75b09eec9 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 95.A6.03743.80B57CB5; Thu, 18 Oct 2018 00:53:45 +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:53:44 +0900 (KST) From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> To: Zhang Rui <rui.zhang@intel.com>, Eduardo Valentin <edubezval@gmail.com> Cc: Amit kucheria <amit.kucheria@linaro.org>, 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 v2 05/17] thermal: bcm2835: enable+check sensor after its setup is finished Date: Wed, 17 Oct 2018 17:52:31 +0200 Message-id: <1539791563-5959-6-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: H4sIAAAAAAAAAzWSe0hTYRjG+7Zz22hxXKJfGkIDLaM0K+EryySCDlpkUf3RqBztpLJN146G FcR0kstaNyNr3m+QK6nW5iwK1HKnIruZJmYta9Sy0GReSkJrHv3ved739z7vx8dLieUmPIzK zMphDVkqrYKQYs2PomNWSpS8cpXHtQKZjHUidOfqLRx99fMANVk6MFT1tgdHrfldAE1//oGj Z64CESq01mKo3jtAoq775QTyWx4DVD70nkTegXME8jlCkf16L4H+3K/E0MOPfpAkZwqG3QRj 9XQSzD3rB5Jx9sUzdQ++ix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NwEpiYvsqIJuDQ0TAW2LLGg6QGmaBoywSa2d8YwOpERaIldjbeA7MZhFQlWhc 8ocdpJ5XwF2isbsQYpmcxMljk1lBbE4BD4lz/xeAlQsBlZzc8ZJ9AiPPAkaGVYySqQXFuem5 xUYFhnmp5XrFibnFpXnpesn5uZsYgeG/7bBW3w7G+0viDzEKcDAq8fDuEDsWLcSaWFZcmXuI UYKDWUmEt0rxeLQQb0piZVVqUX58UWlOavEhRmkOFiVx3tt5xyKFBNITS1KzU1MLUotgskwc nFINjO1d26wyVQwMDxh8CLj8+IFudoSUxQfmtvYvSuwOUeeCS520dnrNW/lmVeLkR00hNxSY XSfsl/666tDmcNF583t+5nGaFUbV7H5e8OrWjMVvX50XFz4w8+0E3e4d9U8zMyWnLjpXWHnL WjDG6KGW7PUXn09+LfOfWJ7vNG1JvKOBEf9Of0dFKyWW4oxEQy3mouJEAIqMWl17AgAA X-CMS-MailID: 20181017155345epcas1p18dee37b9a46f2bf0b68aa3ded43f2717 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20181017155345epcas1p18dee37b9a46f2bf0b68aa3ded43f2717 References: <1539791563-5959-1-git-send-email-b.zolnierkie@samsung.com> <CGME20181017155345epcas1p18dee37b9a46f2bf0b68aa3ded43f2717@epcas1p1.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 |
Series |
thermal: enable+check sensor after its setup is finished
|
expand
|
diff --git a/drivers/thermal/broadcom/bcm2835_thermal.c b/drivers/thermal/broadcom/bcm2835_thermal.c index 687a00c..ec82fef 100644 --- a/drivers/thermal/broadcom/bcm2835_thermal.c +++ b/drivers/thermal/broadcom/bcm2835_thermal.c @@ -227,9 +227,6 @@ static int bcm2835_thermal_probe(struct platform_device *pdev) goto err_clk; } - thermal_zone_set_mode(tz, THERMAL_DEVICE_ENABLED); - thermal_zone_device_check(tz); - /* * right now the FW does set up the HW-block, so we are not * touching the configuration registers. @@ -276,6 +273,9 @@ static int bcm2835_thermal_probe(struct platform_device *pdev) data->tz = tz; + thermal_zone_set_mode(tz, THERMAL_DEVICE_ENABLED); + thermal_zone_device_check(tz); + platform_set_drvdata(pdev, tz); bcm2835_thermal_debugfs(pdev);
Enable+check sensor after HW-block setup (if necessary) and setting data->tz. Cc: Eric Anholt <eric@anholt.net> Cc: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> --- drivers/thermal/broadcom/bcm2835_thermal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)