Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp827166imm; Wed, 17 Oct 2018 08:55:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV61i08rIvxHW6SM8eUkFyhdOpBQp8p83nyH4T+V7j6t5ffSEXBKmwfPCI3WMNt6QofE2kAiJ X-Received: by 2002:a17:902:24c:: with SMTP id 70-v6mr16901368plc.324.1539791721479; Wed, 17 Oct 2018 08:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539791721; cv=none; d=google.com; s=arc-20160816; b=IvoJhvAPF/IXHpGNuNnLUON25Zk19Wr/7jMLjoKte9omAQla14dSNiKypLWwQ1WrKw SlomTgHrZG8sFgNmk0/HY5wgAsd2OYN20+lWPpjsR8N665PtPngr3c9cBqkC6zFxLanC k8DAILRbAiwIXxGx7ojLsFKc/UyIGoFS+m2fXaLLR1f8gdQnbXA6BotJa1vxFWFroeFG IW/iXxwUaYKweTfMMhOq7x55jTYmWsZz1kuM2CKExyoAXi4XQbYr1bdf8vhZgrZ94h0z jbJldBtcnWHsNaB9PAq7FbYtjPFJVegZ4efsxzXxKjQUT0gRjZ+29SGn8CwT0uGxuRvv oL3A== 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=fjqApFgO1XTp91HWbt7qKPbS5qEV11jI5OGBzjdAFiY=; b=ne6akqcLBJC327TfLafejpeRpKwlYLntsxenHdJQyssHKL2/Mh3rRw9ThQbBNKt6aJ MtXlh3LVEdWnQ2gG4L8rPEXASxZVM6axPJu/idTPSYr0Lvui3lwTa89+pk4gahC/z/3e uvDfEu8R1zuZav1e5aN4LPeAWmR6qJWLvbmnZxrdQNGwmXt25Kk25JfXRjdddINSR6qm /hAPalcNnjp+TuXSNGDYPAZHZexpbBArvsCzRr/tSEdGcagEBIOTj+W/e79K9cH/UZnB vuBlMaLuR0A82aW+4Ix4Eu5BrFSjcSWa+IGkQ7xOcl+m2oIkCg8Pc0pR1NXZ03pbGjTN SLfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dp8Qmq57; 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 e3-v6si18151426pga.369.2018.10.17.08.55.06; Wed, 17 Oct 2018 08:55:21 -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=dp8Qmq57; 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 S1728076AbeJQXue (ORCPT + 99 others); Wed, 17 Oct 2018 19:50:34 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:12874 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXud (ORCPT ); Wed, 17 Oct 2018 19:50:33 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20181017155411epoutp043b3a9aa575bb8570a99b7df764b657ac~ecFltWc_-0668806688epoutp044; Wed, 17 Oct 2018 15:54:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20181017155411epoutp043b3a9aa575bb8570a99b7df764b657ac~ecFltWc_-0668806688epoutp044 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539791652; bh=fjqApFgO1XTp91HWbt7qKPbS5qEV11jI5OGBzjdAFiY=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=dp8Qmq57p/KQ/u4Wp3A0+XVvVbYPAfJH11IpeivpdGLy1eoDjosfGQWsCiso+xflk LuEzyTICqEDNmoKfkYVwDEEV3cLvY4jlORHAGV3toPE/fUszgXHwmC2trf8PgwDC4q 1DikfeYXtDnm9VcMoaRjouI/z/PR9lvRHF4X66D4= Received: from epsmges2p1.samsung.com (unknown [182.195.42.69]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20181017155411epcas2p3c90e292309e9b0b754e4fcf11cade851~ecFk-rUiG2604526045epcas2p3f; Wed, 17 Oct 2018 15:54:11 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 07.67.04015.32B57CB5; Thu, 18 Oct 2018 00:54:11 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20181017155409epcas2p41b5770668abdb4af99646841a3dd24ec~ecFjzPh010750407504epcas2p4J; Wed, 17 Oct 2018 15:54:09 +0000 (GMT) X-AuditID: b6c32a45-6a9ff70000000faf-0d-5bc75b23fdbd Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 75.44.03633.12B57CB5; Thu, 18 Oct 2018 00:54:09 +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:54:09 +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 09/17] thermal: qoriq: enable+check sensor after its setup is finished Date: Wed, 17 Oct 2018 17:52:35 +0200 Message-id: <1539791563-5959-10-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: H4sIAAAAAAAAAzVSZ0xTYRTla997fTRWX8r6AIOhaCIYUIzK5wjyw/GMI/pDYqyDCi+ATFtA lglLVgAlhEDKagQjaSBAKYIVHAXaQhjBKsGFMiwKhGoaJeBAyoN/55x7Tu65ySW5wru4Cxke HcdIoyWRIoKPPe729PP2EOvFe4aXbVFmWi0HtZQ34chk0QPUWNiLoZrXozh6kW4EaGVyDkf9 7RkclCV/gKG66QkeMmoqCWQp7AGocuE9D01PFBHoq9oJqerHCLSkqcZQ17gFBAjpDLOOoOWf Bgn6ifwjj257t5+u7fzGoVXKPIL+MNpJ0IWZCwRdpFYCun20mksbyhYxWj/WzqEtKrfzgsv8 IyFMZHgCI93tH8QPe1ldyo3N5CX+MP8j0sBvPB/YkpDaByta3nLzAZ8UUh0A9tVPApYsAjin KuRsuEytwzg7aAbwy2ctwZJlALuMzzGri6AOweIc5WqcJO2p01DdQFplLtWLwSmLpxXbUWJY pBzlWTFG7YB1+aWEFQsoGvYrmnnsMjfYpytZq2e7qg+tKAhWL+PBqjfbWHwMjssb18vZwVm9 ej3rCk3KlrULVv0Azi8/xFjSBGDDgG49cRh260dwtt1mmNv9l2ctDSkBzM0WshYarmh614+s AHCs14DfB84KYKMEjkysLCqUke2N9fWRSaJk8dGhPsExUSqw9hxexztA+dAZLaBIINokoJx1 YiEuSZAlRWkBJLkie0Gyu14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acfcG6R1b9h60OSYmHaDEUpyRaKjFXFScCABt4OTgfAIAAA== X-CMS-MailID: 20181017155409epcas2p41b5770668abdb4af99646841a3dd24ec X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20181017155409epcas2p41b5770668abdb4af99646841a3dd24ec 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 enabling monitoring. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/qoriq_thermal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index d8a80448..fb1750f 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -233,13 +233,13 @@ static int qoriq_tmu_probe(struct platform_device *pdev) goto err_tmu; } - thermal_zone_set_mode(data->tz, THERMAL_DEVICE_ENABLED); - thermal_zone_device_check(data->tz); - /* Enable monitoring */ site = 0x1 << (15 - data->sensor_id); tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr); + thermal_zone_set_mode(data->tz, THERMAL_DEVICE_ENABLED); + thermal_zone_device_check(data->tz); + return 0; err_tmu: -- 1.9.1