Message ID | 1523364131-31059-7-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 9155660365 for <patchwork-linux-pm@patchwork.kernel.org>; Tue, 10 Apr 2018 12:46:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81CDC27FAE for <patchwork-linux-pm@patchwork.kernel.org>; Tue, 10 Apr 2018 12:46:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7662D28826; Tue, 10 Apr 2018 12:46:32 +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 7D9E527FAE for <patchwork-linux-pm@patchwork.kernel.org>; Tue, 10 Apr 2018 12:46:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752428AbeDJMq3 (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Tue, 10 Apr 2018 08:46:29 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:32700 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753210AbeDJMng (ORCPT <rfc822;linux-pm@vger.kernel.org>); Tue, 10 Apr 2018 08:43:36 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20180410124334epoutp01cadf91d6d0a3717c90ef903bc030c366~kE66ZgB-r2510025100epoutp01n; Tue, 10 Apr 2018 12:43:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20180410124334epoutp01cadf91d6d0a3717c90ef903bc030c366~kE66ZgB-r2510025100epoutp01n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523364214; bh=9dW/yCg6bGTAPTmAQv77ARz0RwQIcdkU9t+1FPpvLCw=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=FxFPwtXiFPF674UlMTO5P7IPzbQSxEjfVQ2EfN9c1mwLW554Gz4s03Vwjq0DQh301 slW9aMJqxk3peMlxGR+QixxygAsBNjVHlStq5Si+mMVzD8iHTMWULlf5uRrAr7xuZC +Sm2ULyLxyKkH8agVktS5hBVFt/H5C8BwHmUVl5c= Received: from epsmges2p1.samsung.com (unknown [182.195.42.69]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20180410124333epcas2p16a644cac765991d3ebbc89d09776f027~kE650DIxT2862428624epcas2p1P; Tue, 10 Apr 2018 12:43:33 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 0E.E1.04068.571BCCA5; Tue, 10 Apr 2018 21:43:33 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180410124333epcas2p2491f24a23bc90b06dd7cf46bd469babd~kE65U5u_K1020610206epcas2p22; Tue, 10 Apr 2018 12:43:33 +0000 (GMT) X-AuditID: b6c32a45-6d3ff70000000fe4-ab-5accb1758d6b Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id C7.2E.03827.571BCCA5; Tue, 10 Apr 2018 21:43:33 +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:33 +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 06/17] thermal: brcmstb: enable/check sensor after its setup is finished Date: Tue, 10 Apr 2018 14:42:00 +0200 Message-id: <1523364131-31059-7-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/XauTk8cp+iHgcUgKyFNS/jSkKKiYxcKipSF6NCTk5zKjor6 T+qsvGOIpbZMSimGOmbzMp1g3mY5pdDMTA1DTI1UGmrZfR7773nf5/e8vO/HR2OyYsKbTkhK 5TVJykQ5KcVbe/cHH0gz2hQHtc+CkLHSQKB5uxWgxpJ+HD0cGydQd84oQH8+fibQy7ZcCcqr foSjurlZCo126EhkL+kDSLf8nkJzs6UkWjB5oeanEyT63lGDo64ZOzjmxuWuDJBc9YdhkjNX T1Ncy2Qw99iyKOGa9QUkNzVuIbkS7TLJlZr0gGsbr8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LRNvUp4wgNcICURIz/pxhA7FZBFQlPs39ygRi 8wp4SHT2zACrkRCQkzh5bDIriM0p4Cnxe+97VpCZQkA136ZYT2DkWcDIsIpRMrWgODc9t9io wCgvtVyvODG3uDQvXS85P3cTIzDgtx3W6t/B+HhJ/CFGAQ5GJR7eCQdPRwmxJpYVV+YeYpTg YFYS4c1ZeyZKiDclsbIqtSg/vqg0J7X4EKM0B4uSOC9//rFIIYH0xJLU7NTUgtQimCwTB6dU A6O2TRmLXc7loJeNN9dL/wifaMP3bHHopYmT1O5/9nuX8HwC79ISoeMV5hH/V3WFXpH4cOuh zbYFCo8jv34Sjpr+IMPy9bq637mbHf4G7ndoMzvrfMVh+uQu1vqfsSZ6zoWlLIqZzdWvgx8c W8nxXj/MTHP/y7qAl+n9T0MOrVhmmrGs5dKFXdxKLMUZiYZazEXFiQAbJEuydAIAAA== X-CMS-MailID: 20180410124333epcas2p2491f24a23bc90b06dd7cf46bd469babd X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180410124333epcas2p2491f24a23bc90b06dd7cf46bd469babd X-RootMTR: 20180410124333epcas2p2491f24a23bc90b06dd7cf46bd469babd References: <1523364131-31059-1-git-send-email-b.zolnierkie@samsung.com> <CGME20180410124333epcas2p2491f24a23bc90b06dd7cf46bd469babd@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/broadcom/brcmstb_thermal.c b/drivers/thermal/broadcom/brcmstb_thermal.c index fead74f..eada8c1 100644 --- a/drivers/thermal/broadcom/brcmstb_thermal.c +++ b/drivers/thermal/broadcom/brcmstb_thermal.c @@ -336,11 +336,11 @@ static int brcmstb_thermal_probe(struct platform_device *pdev) return ret; } + priv->thermal = thermal; + thermal_zone_device_toggle(thermal, true); thermal_zone_device_check(thermal); - priv->thermal = thermal; - irq = platform_get_irq(pdev, 0); if (irq < 0) { dev_err(&pdev->dev, "could not get IRQ\n");
Enable/check sensor after setting priv->thermal. Cc: Markus Mayer <mmayer@broadcom.com> Cc: bcm-kernel-feedback-list@broadcom.com Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> --- drivers/thermal/broadcom/brcmstb_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)