From patchwork Tue Apr 10 12:41:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10333007 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: 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 F028B6053B for ; Tue, 10 Apr 2018 12:46:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E034827FAE for ; Tue, 10 Apr 2018 12:46:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4F0F28AE3; Tue, 10 Apr 2018 12:46:47 +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=unavailable 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 51A6527FAE for ; Tue, 10 Apr 2018 12:46:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753398AbeDJMng (ORCPT ); Tue, 10 Apr 2018 08:43:36 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:52837 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753353AbeDJMnc (ORCPT ); Tue, 10 Apr 2018 08:43:32 -0400 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180410124329epoutp04111b9b120e16161c763c10f705687837~kE61NAZaQ0381603816epoutp04j; Tue, 10 Apr 2018 12:43:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180410124329epoutp04111b9b120e16161c763c10f705687837~kE61NAZaQ0381603816epoutp04j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523364209; bh=I7F7wiWGDj9bgDNdWwBVxIlEOallzjVEVVllENhwxKc=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=AfJ6XC6CNuKgDkjUAxc6IKWr0Q9VD5pnt17hJwXbFzWxwB+gBupZVzMWqOT3zcYIA zi5NgQLBF3lCr70xsgICUlFUS0qDw/6DpUB0fE/aPpD55G9/amXU9CfWwO75XHgLak FbNO6Y0o3EgGj4Xt1JrqMKf6GsIBlxTRw+ICCuIA= Received: from epsmges2p3.samsung.com (unknown [182.195.42.71]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20180410124327epcas2p15ac9544c8483a4f6e5ac4051b4f5cf86~kE60PFuMy1205512055epcas2p1B; Tue, 10 Apr 2018 12:43:27 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id FB.A0.04072.F61BCCA5; Tue, 10 Apr 2018 21:43:27 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20180410124327epcas2p1da6a39c2e0443b5b5ec575941f6255a7~kE6zjJCmK2862828628epcas2p1_; Tue, 10 Apr 2018 12:43:27 +0000 (GMT) X-AuditID: b6c32a47-0fbff70000000fe8-96-5accb16f2f45 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id B5.2E.03827.E61BCCA5; Tue, 10 Apr 2018 21:43:27 +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:26 +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 05/17] thermal: bcm2835: enable/check sensor after its setup is finished Date: Tue, 10 Apr 2018 14:41:59 +0200 Message-id: <1523364131-31059-6-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: H4sIAAAAAAAAAzWSfUhTYRTGfbe7uztxepuSbwqWCyEl7cOslwwpM7phRf07lLzqTa1NbVct A/GzUvFjUlGKqZVgToc6pi6d5eZnU8tlmJgmS5Es0GSQqYi5D/973vP83vOcA4fgikp4XkRS chojT6alYtwZ6+jzPxmY0jYqOfppJAS1PW/hoUXLEECq0gEM1X6Z5KHe3AmAtn/85iFjZx4H FVS9wlD9gpmPJrqqcWQp7QeoevkbHy2Yy3D0U+OJ1G+mcLTeVYOhnu8WcHYPlbcyiFNVc2M4 9bZqlk+1T4dQr3VLHEqtLMKpmUkdTpXmL+NUmUYJqM7JGi41/GwNo4amOjmURe1zTShxPhPP SJMyGPmRsBjnxNbxESx1i7hX0j2O54AxfjEQEJA8Aed6Gna0MyEitQBOdr3D7Y81AI0z7dxd qvFlE2Y3ugEsfNLs+LIB4PTsPG6lcPI0rHikBMWAIDzISKhpJqwMl6zE4J+ZAVsnd1ICl1XF PKvGSD84slFnqwtJClasluP2NB/4YfCxjRGQl+BmzwrPXi/nwz7VQbuOgMYFk2M6d/hrSOPY xxsuKtuANRiS+QD+1eockAJAXYvIr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vPO31Dmu96a9fFjf5DKOG0t2ylLMxMb33guQmx/e/0DQr2P1l46pb G/Nt8lcdOxxvvYpfN+SdeO7iZXXCPYzMWw9N27c2rGTjzlw3hiUBvVZq8+cu3GKifrfWfr2H aM5ucX23Ldc8grJq2A8zKqVf/Wtxs6Jd+VdboBJLcUaioRZzUXEiAEtVU/t2AgAA X-CMS-MailID: 20180410124327epcas2p1da6a39c2e0443b5b5ec575941f6255a7 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180410124327epcas2p1da6a39c2e0443b5b5ec575941f6255a7 X-RootMTR: 20180410124327epcas2p1da6a39c2e0443b5b5ec575941f6255a7 References: <1523364131-31059-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 HW-block setup (if necessary) and setting data->tz. Cc: Eric Anholt Cc: Stefan Wahren Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/broadcom/bcm2835_thermal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/broadcom/bcm2835_thermal.c b/drivers/thermal/broadcom/bcm2835_thermal.c index 1270e3f..d52c125 100644 --- a/drivers/thermal/broadcom/bcm2835_thermal.c +++ b/drivers/thermal/broadcom/bcm2835_thermal.c @@ -227,9 +227,6 @@ static int bcm2835_thermal_probe(struct platform_device *pdev) goto err_clk; } - thermal_zone_device_toggle(tz, true); - thermal_zone_device_check(tz); - /* * right now the FW does set up the HW-block, so we are not * touching the configuration registers. @@ -276,6 +273,9 @@ static int bcm2835_thermal_probe(struct platform_device *pdev) data->tz = tz; + thermal_zone_device_toggle(tz, true); + thermal_zone_device_check(tz); + platform_set_drvdata(pdev, tz); bcm2835_thermal_debugfs(pdev);