From patchwork Wed Oct 17 15:52:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10645807 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: 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 319CE112B for ; Wed, 17 Oct 2018 15:55:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C8112847D for ; Wed, 17 Oct 2018 15:55:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10B8B28608; Wed, 17 Oct 2018 15:55:14 +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 A69332847D for ; Wed, 17 Oct 2018 15:55:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727352AbeJQXuP (ORCPT ); Wed, 17 Oct 2018 19:50:15 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:12808 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXuO (ORCPT ); Wed, 17 Oct 2018 19:50:14 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20181017155352epoutp043607b889f6e2ff3cd430dd41af30d6c8~ecFT2duyJ1081110811epoutp04M; Wed, 17 Oct 2018 15:53:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20181017155352epoutp043607b889f6e2ff3cd430dd41af30d6c8~ecFT2duyJ1081110811epoutp04M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539791632; bh=+LQAm2YggAZ+WEiZTLMgtllvteUFmBuEekm20hRy5lQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=CdaqCIiq/b4mNO3D4puA+U8gndAJmOXF5X21hGuFzv5npF5kASoEPgGdMZBfA0dKV T5qZqVKqfb/CzM6Ndn8uU+epMX94oie88xUtFzQofZs9gg94D1146fTu7QDkjTx1I3 7uTxrv/nX3mjR71gC4YYDHXxBuMGJ6aTXvg9tA78= Received: from epsmges1p5.samsung.com (unknown [182.195.42.57]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20181017155352epcas1p17a3b7143594b6af0954f966abbf18055~ecFTin_ZK2660926609epcas1p1q; Wed, 17 Oct 2018 15:53:52 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 61.D9.04081.01B57CB5; Thu, 18 Oct 2018 00:53:52 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20181017155351epcas1p171637911ef29cdec96dda648cfac51a5~ecFSfWAxx1224012240epcas1p1T; Wed, 17 Oct 2018 15:53:51 +0000 (GMT) X-AuditID: b6c32a39-689ff70000000ff1-39-5bc75b10e106 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 07.A6.03743.F0B57CB5; Thu, 18 Oct 2018 00:53:51 +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:51 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Zhang Rui , Eduardo Valentin Cc: Amit kucheria , Eric Anholt , Stefan Wahren , Markus Mayer , bcm-kernel-feedback-list@broadcom.com, Heiko Stuebner , Thierry Reding , Jonathan Hunter , Keerthy , Masahiro Yamada , Jun Nie , Baoyou Xie , Shawn Guo , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com Subject: [PATCH v2 06/17] thermal: brcmstb: enable+check sensor after its setup is finished Date: Wed, 17 Oct 2018 17:52:32 +0200 Message-id: <1539791563-5959-7-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: H4sIAAAAAAAAAzWSa0hTYRjHe3cuO44Wp03cm4K1VR9UNAWF17KQKDxggX6KNcRGnnR5ZUdF zcLmmjp0ZFKaecsbJl7SLM0L2XRbeaNamKYzvGRWYsQwyQ8Z89S3//95fs8NHgqT6AlPSpOS zmpT1EkKUoQ/G/EJ9KdVNlXgerEM5ec1CFBXRSeBVp02gNpLLDiqfT9NoOGbdoB2lr4TaKxX J0D6ynocNa4sCpG9v4pEzpJRgKo25oRoZdFEorUeGepumSHR7/4aHA0tOEG4hNH9sJJM5adJ knle6RAyTz+GMA2DXwVMd2sRycxPD5JMSf4GyZh6WgHTO12DMa/Kt3DGNtMrYJzd3lHii6Kw ODZJk8lqj526JEow/Sok0x4Js77cH8XyQD1pBBQF6WD4p0BjBCJKQvcBOKAbI3izBeBE75TQ CNx2IYO5GuMTjwE0zzTivNkGsHq1g3BRJH0clha0AldbdzoS9rRRrjBGW3C47PRxaSkdA0u7 9MClcfooNPwsx1xaTEdAR4cd54d5w9fWst2WbjQDp3bqSNcsSJcL4VyFGfDQGWgyfiZ5LYXf bD1C/hwv+M5y8h8P4Pp2E86bTgDbJq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Qd61ikVPbNzlvqf/xWEy7ptSGKYPtqc3FedcWC7hseZW4 d9K5beqBr4Wn2rtO+f51VbdbWMyDYJafvuGLrXJ/3rjYYqdcwzTrRumtdV+3VHnsFryQqLDq Yf+C5ACpK2UJO7P/1q1jfut5POnkdIcXol/tjth1Wt1XYinOSDTUYi4qTgQA75LOYXwCAAA= X-CMS-MailID: 20181017155351epcas1p171637911ef29cdec96dda648cfac51a5 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20181017155351epcas1p171637911ef29cdec96dda648cfac51a5 References: <1539791563-5959-1-git-send-email-b.zolnierkie@samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable+check sensor after setting priv->thermal. Cc: Markus Mayer Cc: bcm-kernel-feedback-list@broadcom.com Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/broadcom/brcmstb_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/broadcom/brcmstb_thermal.c b/drivers/thermal/broadcom/brcmstb_thermal.c index 3511ce6..5650a6a 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_set_mode(thermal, THERMAL_DEVICE_ENABLED); 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");