Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp826535imm; Wed, 17 Oct 2018 08:54:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV62TIwVFqSytRLCtF51Nsj372RnAoy+03X9Gzgf1Zd670tdkXGaNl9A3MnxvPHAMOq0LA8ZM X-Received: by 2002:a62:1551:: with SMTP id 78-v6mr26777115pfv.178.1539791688123; Wed, 17 Oct 2018 08:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539791688; cv=none; d=google.com; s=arc-20160816; b=0EQZ9Wkq+XIx7toW3Dq+4cveNgnYUAGZ+/kp6p7Tm5ME+fYwAiCH7OTTfk374EHNDE P2Ev3n1GUTxex2Nn2oVwSxar3BVcA8zpaRzhHdHIlWzIoLYcyakOYlxFrz1HjjqmeA4j o6Bg2tBdimUZBnYNGma2AuRze9HcgHXqOjjiKINcBt0kMRSdyKFoU2Za+HWGUMzgnvgI eiaa/92mOjpIdzKyFvt1haWD7jMpXfnjAJSDiTbDsgtdmJzFeqTPBDT08G+lSPhLbvMe aqXDu0G3F78kAGc/qpYY8Cjjpf+G7FDrqbp5I8KW79A9KqSbifXyuEcJcPjAAND0AbmB nPBA== 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=G9v961x7gTaUJ3IgOF7OjZMws+07qhAKZWxmjW9kIhg=; b=V1GxGXaXdP5EZqhCV5vskWAe6EwYFLzdy/K4oSutvXWnt9KMTeOp1Uy1+1tH9o8jm4 S7P4Qxju3ifTTowEGUPYm1kQ+mL4T6UTbN+sElluddONGJDKPT/GTtN3hSkBcJimdiwk KFrxOxiPESzEk2i8QFSKGHT1eSLaRv20I6FuT9VvngH0HjlEtp34SkOC/gzUUkq7AjgU g+35JjskrNEaQ02zMZDYHpDKdrVqORpSNuhNrP1sYcirb7STEMPauOzDfDamF5+Wr8Vu b4PTFqnTJYJfLqW9u0kpsr9O+COdQAB1r2thldGZIVDjEEZNd7U5X4aUVycK+3PT4qz2 0MyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=EyOrKyub; 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 w71-v6si17367303pgd.163.2018.10.17.08.54.32; Wed, 17 Oct 2018 08:54:48 -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=EyOrKyub; 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 S1728000AbeJQXuI (ORCPT + 99 others); Wed, 17 Oct 2018 19:50:08 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:63290 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXuH (ORCPT ); Wed, 17 Oct 2018 19:50:07 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20181017155346epoutp01a97af298635505c65307adb5a6ef3caa~ecFOESDfM2806228062epoutp01h; Wed, 17 Oct 2018 15:53:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20181017155346epoutp01a97af298635505c65307adb5a6ef3caa~ecFOESDfM2806228062epoutp01h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539791626; bh=G9v961x7gTaUJ3IgOF7OjZMws+07qhAKZWxmjW9kIhg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=EyOrKyubSlC1adEZvBP44L/8wW/QYOTz4AfGQMX9pCrOaGAy54V3DEkyYhOgHJA8m OVNXda2rkrsHL/UPdrAaD8TcaZ8Ues6PRk7MAOCE8vTUNhOFXR5UblGnTBjo9PvEb5 w0xw8Av5zuFeUHac5Q3yVgjf5VEFvQaCgaJ0dBOg= Received: from epsmges1p1.samsung.com (unknown [182.195.42.53]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20181017155345epcas1p13d4067385b5ccdc39eb3691ec37c8b6c~ecFNTNsfv1224012240epcas1p1Q; Wed, 17 Oct 2018 15:53:45 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id DB.3F.04073.90B57CB5; Thu, 18 Oct 2018 00:53:45 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20181017155345epcas1p18dee37b9a46f2bf0b68aa3ded43f2717~ecFMq4zcf2660926609epcas1p1o; Wed, 17 Oct 2018 15:53:45 +0000 (GMT) X-AuditID: b6c32a35-69fff70000000fe9-b5-5bc75b09eec9 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 95.A6.03743.80B57CB5; Thu, 18 Oct 2018 00:53:45 +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:44 +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 05/17] thermal: bcm2835: enable+check sensor after its setup is finished Date: Wed, 17 Oct 2018 17:52:31 +0200 Message-id: <1539791563-5959-6-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: H4sIAAAAAAAAAzWSe0hTYRjG+7Zz22hxXKJfGkIDLaM0K+EryySCDlpkUf3RqBztpLJN146G FcR0kstaNyNr3m+QK6nW5iwK1HKnIruZJmYta9Sy0GReSkJrHv3ved739z7vx8dLieUmPIzK zMphDVkqrYKQYs2PomNWSpS8cpXHtQKZjHUidOfqLRx99fMANVk6MFT1tgdHrfldAE1//oGj Z64CESq01mKo3jtAoq775QTyWx4DVD70nkTegXME8jlCkf16L4H+3K/E0MOPfpAkZwqG3QRj 9XQSzD3rB5Jx9sUzdQ++ixi77TTB9Pc8IBiLaYhgzjlsgHH1VIqZJ6UTGMP3ukSM3x6RKtsn 3aBmtZlHWUNsYpo0o6jKSupLJXnXe0zACL6RxUBCQXot9JvLQDGQUnK6BUCf5TwpmAkAzY3d 2BzlKyvChMZtAC+db8UFMwlgzS/nTBZBr4cXi2z/sygqmE6BjptUoCymOzD4xR8d0Avp/dDe WQUCGqMjYX79XzKAy+itMP/MEWFXBHzqLsEDWkIz8MV0NRFYBekSEn7qLsQDPKS3wIH+VIFf CAd5BymUw+Gbjo0CXgrgz8kGTDC3ALz53C0SBhLgI/41LrxtARwaOzubKYPmU3IBYeDtmrbZ XykD8Ef+a9EFsKgazLOBEFbP6dJZLk4fF8OpdFxuVnrMoWydHcycxvL4FnD5xbZ2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yWnLjpXWHnL WjDG6KGW7PUXn09+LfOfWJ7vNG1JvKOBEf9Of0dFKyWW4oxEQy3mouJEAIqMWl17AgAA X-CMS-MailID: 20181017155345epcas1p18dee37b9a46f2bf0b68aa3ded43f2717 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20181017155345epcas1p18dee37b9a46f2bf0b68aa3ded43f2717 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 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 687a00c..ec82fef 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_set_mode(tz, THERMAL_DEVICE_ENABLED); - 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_set_mode(tz, THERMAL_DEVICE_ENABLED); + thermal_zone_device_check(tz); + platform_set_drvdata(pdev, tz); bcm2835_thermal_debugfs(pdev); -- 1.9.1