Received: by 10.213.65.68 with SMTP id h4csp3856532imn; Tue, 10 Apr 2018 05:51:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx49aesX7dLRQt4uCR4SYTw/gwovRBWDDjpWlxaR/sB6PUfJa00x67uPen0CnMwYB4tRdn9WL X-Received: by 2002:a17:902:b2c8:: with SMTP id x8-v6mr299920plw.83.1523364677548; Tue, 10 Apr 2018 05:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523364677; cv=none; d=google.com; s=arc-20160816; b=gnxWQnpcvCs55wZWFHP54fSMpamrh4zle29wXsNAFeCOFDbaJq6wKFlIzsCGp70JMI afCeWnyaxbOhrini/c7YksRO/WO97nqkX1zSY2eYe5WQ7cE/CUuC6MvQ+c6eptqPS2k3 nLW62sFRHTGG0686vHy3FysW11nQU1JQC1TJqu7P6Rg7gcdfbtV9trJJmB6VuyAu5RWc NJhHg7DJDdDENpm8c2jayGFjQcrcXs4zUn2nrkQu+WS5wctI5kPNwB2lqP9eq+BHwyOH 6w0efdi6YDO9uMslZ73ZWXLifWQcTjtEfineDLnqyOZjjnfWvHd7QP6+uX/CURnSzU5O 3+CQ== 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=I7F7wiWGDj9bgDNdWwBVxIlEOallzjVEVVllENhwxKc=; b=nrSKIJ9InM1MIFzfa8tXmHJFkB+5cHLwVVmukD9rIzvGka7wNk6niptx6W1AWhi4Qf ckyJrm4Lbzd2IE9rBAG4TiqC8GnqnIvITsZSVZg3+UVdMDALb6+XzMgc7fko63TFGMOo CIvAMqaX42A7GI7PvphIIP1ofoTEgMtE5oQNqw2pVF1xwo6KxCZ+qJ6oI3v2EU1+nR6J qr1A8KTDxofVfCX8mQgYMoBp/VqtPARhcf3ungq0xrlF0hU6G7/s1R4kg1aKpl6Xmyol OycpyQ5VRXPSjb/acaXO3nrR72cbWYuFaJSZYRUKgbStlZuS2URabtoHE/ov2lhY7moO IvRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AfJ6XC6C; 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 f34-v6si2675467ple.622.2018.04.10.05.50.40; Tue, 10 Apr 2018 05:51:17 -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=AfJ6XC6C; 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 S1753442AbeDJMng (ORCPT + 99 others); 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+1eockAJAXYvIrkNh35DJ1pRLusLCvi2+dWhICmHhQwdCQX1thyP3HPw3 O+DYvhpA8/AwXwG86oCTEuxlUllZAsMeTw0OYmkZm56cEBSXIlMD240EXNSCjo+XDYAkgNhF qNCPSEQ8OoPNl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5ucX23Ldc8grJq2A8zKqVf/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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 1.9.1