Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp826677imm; Wed, 17 Oct 2018 08:54:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV62VsTycFaqY3hFHhhpL4MkR5in4RAa46tossMQOS5Jy/oCxeORvvWhVUDM0hLmoSgRcjeah X-Received: by 2002:a17:902:8c84:: with SMTP id t4-v6mr26708588plo.188.1539791696654; Wed, 17 Oct 2018 08:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539791696; cv=none; d=google.com; s=arc-20160816; b=NzIZDhV+2Yl/lhCPk7AaS/3m8j8Zy3WouFevFLe6pZamdqZbhdd8njVMapTLSs8nnv ItmIhj90GD3SQx7IlQSvD5cpL9qTqq0ZcqPT+g18Tn7i6BKXmotuHMjLz+bpI+6vxuFL 7QoJtmgostCZ/olyxIhjPdnRcxEbhwQcdIvTS24LWQRLhD9/rYAwDD9ona+0SE6gRGTn 9GuLGgLAWpNRk2PEdrsV3+kBJekh7LDrt+z+CIdLtFusfklWcd8AYSF1u8eu1qFqIDCE mDlthCPpna+y4Ly4YQyr/cwSimRo5vgnkM924ifW23sl04fsAHlgf6YC1jLAuNbc8jJG m/Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=+LQAm2YggAZ+WEiZTLMgtllvteUFmBuEekm20hRy5lQ=; b=xn713TnXJy3Pk+SdG0sz+IyCARi8zRh6fsA5nUcvxEB4pmG5grsH9UvDADFRBY/frd PR+S0N8Lu0MflNvY+rEkbukjYVSGzAW6ZgrlFKFhh8QsKs4EB3YhR6LmumiaWo6yFm1B XJfWLXY+WDRt8beoCQYOPA1oizOV96/CwauC7GBQxFhaoJSpw3Yci4++kXbR6IeklqCY HHtRjNBHOGHNmeE/vP03aMYRTsx5VqjC3iG57Gf5VXZJMvNrlNwcm84fmnoASTNEsaE8 v4UfGCU7YPwaDlSC5746QGAajVSqTyHbB6uPwcqB41iC5uUtmNxw7rSTBdO16qftv/lO 7Bvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CdaqCIiq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n25-v6si17802833pfh.207.2018.10.17.08.54.41; Wed, 17 Oct 2018 08:54:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CdaqCIiq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728015AbeJQXuP (ORCPT + 99 others); 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+M5y8h8P4Pp2E86bTgDbJqwCvuAEHLG9Jfjt9sGNzWKCLxbDQoOERxioG9om+SMf AGhfuovfBgfqwJ5W4MGmccnxLBeUFhLAqZO5jJT4gMupyd1g9zd8Q/uAdeqcGdAUUOwV93lY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Dq 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"); -- 1.9.1