Message ID | 1539791563-5959-16-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 D5E3C13B0 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 17 Oct 2018 15:54:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C493227861 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 17 Oct 2018 15:54:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B775A283E7; Wed, 17 Oct 2018 15:54:52 +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 37DE927861 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 17 Oct 2018 15:54:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727330AbeJQXvK (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Wed, 17 Oct 2018 19:51:10 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:12977 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXvK (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 17 Oct 2018 19:51:10 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20181017155448epoutp04eb40f9fed910036d58e937c00b28fdca~ecGH1aG5w0269102691epoutp04j; Wed, 17 Oct 2018 15:54:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20181017155448epoutp04eb40f9fed910036d58e937c00b28fdca~ecGH1aG5w0269102691epoutp04j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539791688; bh=dhe+bkWFIacRqoxR5vBYCjnNquU4LvLJTXdac2+zIdQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=ZbkHzNOci8wOT4Vblgk+0BLoZDE95nhic9OUsosUe6Lg7c+jehnA/I2t09Unjl2tT vDOeqC/t4a5tAa6qnf/f/8u0YO8IKUlnAw/2F3iXplfl4u7Ia7I/F8HNgsOeTCipDD XaNRsGUkBoNAbozltA+jV/NzlYorqLE8IZ95gKBk= Received: from epsmges2p2.samsung.com (unknown [182.195.42.70]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20181017155447epcas2p3cf3d552600e8c4879fbc4cebf1b738c8~ecGHIS7qO2404124041epcas2p32; Wed, 17 Oct 2018 15:54:47 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id B5.EF.04077.74B57CB5; Thu, 18 Oct 2018 00:54:47 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20181017155447epcas2p2db761f6575de357b65eb5e39b709fead~ecGGfdRXC1848918489epcas2p22; Wed, 17 Oct 2018 15:54:47 +0000 (GMT) X-AuditID: b6c32a46-475ff70000000fed-05-5bc75b475139 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 89.44.03633.64B57CB5; Thu, 18 Oct 2018 00:54:47 +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:54:46 +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 15/17] thermal: uniphier: enable+check sensor after its setup is finished Date: Wed, 17 Oct 2018 17:52:41 +0200 Message-id: <1539791563-5959-16-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+7azc46jyWGKfjkSWhgpaaldPl1X0jzQhaAIdKGNPKjkVDYn 6j95CVNho8jyfsFL2DKcY+myCeJl89IkXZlWJposK1vhKM1Max7973nf9/fwvC+8JFdYwPMh k1LSGUWKLFmM87H2Xv8jgVFSi/SAaTgY5ec0cFBbWSsP2Z0WgJ6o+zFU+2qch7pzbQCtz37l oaGOPA66VVGPoca5GQLZOqtw5FT3AVTleEeguRkNjuYN3kjfPIGj3501GOr64AQnhXTedzNO V0xbcfpZxRRBP317iG4wfebQem0RTr8fN+G0Ot+B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bYsoYDpIZZ4CiLxNoZ39hAaoQF4iRenJvCCmKzCKhK 3JjynAXE5hXwkHix5QMjxDI5iZPHJoPVcALFz/1fwAax2F3i5I6X7BMYeRYwMqxilEwtKM5N zy02KjDKSy3XK07MLS7NS9dLzs/dxAgM/22Htfp3MD5eEn+IUYCDUYmHd4fYsWgh1sSy4src Q4wSHMxKIrxVisejhXhTEiurUovy44tKc1KLDzFKc7AoifPy5x+LFBJITyxJzU5NLUgtgsky cXBKNTAWHYyMFMyYfSLH7ZLcHMYqj0zX0LDwZ+sDq0/Mt5qzzvP5m129W5M5bbf0S5pmXuz3 ipwhI290OP7N/wmtcq526xKkb/nan7NrsOTwX73ktvYsqYzChbVXBZZyljfvMbn69vp8nwyr vBm2+12mu/d+m9e3y2mZ4X3lJ+KFhy2TgyZdL3o0f7cSS3FGoqEWc1FxIgBejN1oewIAAA== X-CMS-MailID: 20181017155447epcas2p2db761f6575de357b65eb5e39b709fead X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20181017155447epcas2p2db761f6575de357b65eb5e39b709fead References: <1539791563-5959-1-git-send-email-b.zolnierkie@samsung.com> <CGME20181017155447epcas2p2db761f6575de357b65eb5e39b709fead@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 |
Series |
thermal: enable+check sensor after its setup is finished
|
expand
|
diff --git a/drivers/thermal/uniphier_thermal.c b/drivers/thermal/uniphier_thermal.c index ed3a920..9ccc1fc 100644 --- a/drivers/thermal/uniphier_thermal.c +++ b/drivers/thermal/uniphier_thermal.c @@ -307,9 +307,6 @@ static int uniphier_tm_probe(struct platform_device *pdev) return PTR_ERR(tdev->tz_dev); } - thermal_zone_set_mode(tdev->tz_dev, THERMAL_DEVICE_ENABLED); - thermal_zone_device_check(tdev->tz_dev); - /* get trip points */ trips = of_thermal_get_trip_points(tdev->tz_dev); ntrips = of_thermal_get_ntrips(tdev->tz_dev); @@ -332,8 +329,12 @@ static int uniphier_tm_probe(struct platform_device *pdev) return -EINVAL; } + thermal_zone_set_mode(tdev->tz_dev, THERMAL_DEVICE_ENABLED); + uniphier_tm_enable_sensor(tdev); + thermal_zone_device_check(tdev->tz_dev); + return 0; }
Enable sensor after checking trip points (unipher_tm_enable_sensor() enables IRQ so we need to toggle sensor before calling it) and check sensor after doing chipset specific enable sensor operation. Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> --- drivers/thermal/uniphier_thermal.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)