Received: by 10.213.65.68 with SMTP id h4csp3857279imn; Tue, 10 Apr 2018 05:51:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx48jlpl+0Ac5lXJXOEzK2XnuJijoWtRlLQW5sAci6pyopgJQlj4ZyBB8dMFm9W4gGvFw7VwJ X-Received: by 2002:a17:902:864c:: with SMTP id y12-v6mr274645plt.293.1523364711030; Tue, 10 Apr 2018 05:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523364710; cv=none; d=google.com; s=arc-20160816; b=BXYyKCD/GukTXQRRWVM/ePNmtrXzPNN1/h863Clo7gqbCOBX7vDIwkDVk0M4MdMTtk Y8rzsdUlL7vukoRp9k9Q17thbrIYPsY4K9UzbsKFLlzFR9EiLX1TSsRvEu5QnSsi45qS vcCwokXYxTlfyXUpLe0ZEg/8xXpsFL07Rkm9ObI2OX3jYmbsf60xeCR5YNdc8cE98dIE TKpRTUF9zQF+qhoc5jdadfYuZ1YSfelJuvoBuold40M5/T+eixcSHjVHQpwgBy8gLalP kuqdlq00BnWsE/1Jf/u63CnhCHxE4ux2u3C9HKh9d3bQxq9zvH4EneAWi9dz4XHHdftI iPeg== 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 :arc-authentication-results; bh=9dW/yCg6bGTAPTmAQv77ARz0RwQIcdkU9t+1FPpvLCw=; b=rlR84m9AuqztBVJz1gn+GAU9XpCjnJu0i6IRTW4dPK6LDvemR1dR4iG4loqS2VhlGD HPvgz0AI4ufWFHi9BI6J+WNlI0evKurUyQaSQeelvVgAakcLQBYiOHXQyz4bxp/5f59x A9j1bB0oJp+f4r48AJqX6fH/AHnbBKNcEJA1t9eWoYTdRMF0HnJ3tdP+/JX5YYoG9t3P vshOshfLlG0kBt3jA3+s0jbbKOFRe13L380STZR1LUUvpY4rjDvWvSB8xdK3ziRnCXaN fx0arc3iCBIcYc5wWGh0Opx0RtpejRtJ24r+Ty2MBXFaGYuU2uzjOqcLjVQMq7MMg9BB R5jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=FxFPwtXi; 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 f2-v6si2594780plo.434.2018.04.10.05.51.13; Tue, 10 Apr 2018 05:51:50 -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=FxFPwtXi; 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 S1752907AbeDJMq3 (ORCPT + 99 others); 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 ); 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 To: Zhang Rui , Eduardo Valentin Cc: 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 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 T1Ncy2Qw99iyKOGa9QUkNzVuIbkS7TLJlZr0gGsbr8G4wXsbOGedaJNw9mafi4xCejSOT0xI 5zUBYTFSVf2gmUrRURnFna/IbFBBFgJnGrKHoWHETBUCKS1j2wEcq7i/XWwAaJvOxwsBvUU1 GRix3wmgfb6XFItNADeGjLhjFMmGwDu39cAR8GDPQlMD7WAwtgqHq1P9mINxZxXQtvaJcGic 3QO/PliTODTDcrCguBKIK/nAFwPlW4wzGw5/dK0QjkGQLadg5bcuSoROwnfGZULU7nDJatru 74TzeiMQA1oA19stmGiUAWgxyEQdCnutr7fCGLsD5vf+osQzGZh/axvhYGvh5vYbHYe1pkWJ eLEOQO14C1kGvGuBkx548imCOp4XglIC/QWlWkhLivePTVY3g60/4neqHVSOnOsBLA3krkzZ 8yGFjFCmC5nqH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ZzdWvgx8c 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> 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 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"); -- 1.9.1