Received: by 10.213.65.68 with SMTP id h4csp3853022imn; Tue, 10 Apr 2018 05:48:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/+qh9yk8ZLCTfL7LRzmJ6STI00qPiIRAPTumSZTv0eJpwT0543OTnaCu/uXPuO3hzwHwvd X-Received: by 10.99.126.17 with SMTP id z17mr171568pgc.385.1523364489773; Tue, 10 Apr 2018 05:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523364489; cv=none; d=google.com; s=arc-20160816; b=gdGFk419+NImqAYvfgr68e/+iul/XnP9WuhCwl0FOSB2s4tm3XVb+oMNXOxInEpnVz YVFlu3FFiiFHh1yapXEYBgKQdFc9vxYda5okReJ79Jbr2M5wt1vtuOsxD+0yH2/wDgXl JE87trYcTFM7/fVJ2DPW3AQgiUUdhYN5cUSW7ZuqYHGPVm1mNfq44yXM6WQ0XNbUNXHw lAfiyargG6kCTDlFPYTxh4BXv0GK+m+fnF8hsHJ8USSIGuV5Vk/IU7wvUdIFksc/40XW HXCCKpwdSj2GgdDaQatBnmI39PNgT0OHDFCFjeA2zqMmiXmGm8kQXkdkPizuqGKFpkhP WDUg== 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=4/poJE3FWqJDIk+7upPDar8gIZUzHSrvr7aCDUgdTDc=; b=WKB5FaA5DRXW5kmVUsd7Ez3by3kAARLwdueiNOKoyGy9JCBHk6McFVREqc5f+b7qdy c938DZEn+OU/CIBWSPreuTViyukbEYtMa4VE+4T2eDSIeScVIxvmOXj14S+HfUT6lVha mwsriUEZozel8BkC4dvmQ7n+qBqGrItfyrF1XvjOFwXArIaSWMZ0h2k09G5EaWZihOHO 9HAjq04Hd/f2Nfzu38lXOxwD0LRYnEDF4TVNLjMJ6t05e8U5+yzT4yeD8rR+V2Kx4Udo 5RENmXaJ2n9Vol1ilwlsjJhfSaKwqrSrytwRUtDniJwldQALluduzZMlt7NzdMhUlhMb MuRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=W4l7lx84; 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 195si1760598pgd.520.2018.04.10.05.47.32; Tue, 10 Apr 2018 05:48:09 -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=W4l7lx84; 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 S1753628AbeDJMoC (ORCPT + 99 others); Tue, 10 Apr 2018 08:44:02 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:23133 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753595AbeDJMn6 (ORCPT ); Tue, 10 Apr 2018 08:43:58 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180410124356epoutp02fdf5561a44781019fa33442268bc1291~kE7OzXpYp0274802748epoutp02Z; Tue, 10 Apr 2018 12:43:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180410124356epoutp02fdf5561a44781019fa33442268bc1291~kE7OzXpYp0274802748epoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523364236; bh=4/poJE3FWqJDIk+7upPDar8gIZUzHSrvr7aCDUgdTDc=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=W4l7lx84CHGgYTKnrSBtguns1/nWsmYU1R1B5O5EYK786FAXBJums3hVVoB4MZtYz l573UDEeo/Q39ICrriMEEhvnKsuMKsAtp23xYwV9XR/Gskq4n+4obR/AUNs92euznO TsHHP7TxGi0Cvt6iWDhlac82R51vr0MkD+gLEC3k= Received: from epsmges2p4.samsung.com (unknown [182.195.42.72]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180410124355epcas2p260705ff91cf3a15b327ec5a3d3d720a6~kE7OVB7oZ0601106011epcas2p2K; Tue, 10 Apr 2018 12:43:55 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 85.36.04082.B81BCCA5; Tue, 10 Apr 2018 21:43:55 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180410124355epcas2p272d4a06619ad3a3e58c792186069f0bc~kE7OIfezI1020610206epcas2p2K; Tue, 10 Apr 2018 12:43:55 +0000 (GMT) X-AuditID: b6c32a48-8c1ff70000000ff2-87-5accb18b4469 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 3D.2E.03827.B81BCCA5; Tue, 10 Apr 2018 21:43:55 +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:55 +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 09/17] thermal: qoriq: enable/check sensor after its setup is finished Date: Tue, 10 Apr 2018 14:42:03 +0200 Message-id: <1523364131-31059-10-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: H4sIAAAAAAAAAzWSbUhTYRTHfXbv7q7S6jZNH18wGCllaC8YPWmIkuAVi4owY0U29KLS5svu NO2TaZhaM8VAk6WZJjZcwzXdspm65Uu+gRm+pFYLE03ScKBlSrlNv/3P+f/+55wPh8QED7he ZEqqnJGliiVCwgVvNR86GXi/eVB0dGj8FGqu1HDRnLUXILWiG0c1H8e4qPPOKED/vi1yUb8+ j4PuVj3DUf2shYdG25QEsireAaRcmuKhWUsJgeZ1HkjbOEGgP23VOGr/bAXhe+m85R6Crvoy RNCvq2Z4dMunE3SdcYFDa1VFBD09ZiRoRf4SQZfoVIDWj1VjdF/FGk73Tug5tFXre4Evcjmd yEhSshjZkbAbLsmdlYu89AUi27A5guUCC7cYOJOQCoaVhfWgGLiQAsoAYIO6huMo1gDsmDVw dqimaTXhMN4AWN6n3o6sA1jRoOfZKIIKgWX3VFsGSbpRMVDXRNoYjHqMw1/T3ZiNcaWuwIZG hV3jlB/8vVJtz/KpaNjaU7d9ky9831Nu185b/b/ty1zbIEg95MHxkQncAUXCltoCwqFd4Y9e Hc+hveGcqhk4AvkArhqMmMMoBdCoETh0KDT3jtg3YNRuWGje5NmuhhQfFhZsIzRUqE3bMyPg fMGwfa+AUgL4ZDWqFHg9BU4q4M6ks9Ikhj2eHhzEiqVsZmpSUEKaVAvsPxJAG0Dn8FkToEgg 3MVHHQMiAVecxeZITQCSmNCNL1EPig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tmqD0xi1fiH+CwZxoJZbijERDLeai4kQAyP6+bHYCAAA= X-CMS-MailID: 20180410124355epcas2p272d4a06619ad3a3e58c792186069f0bc X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180410124355epcas2p272d4a06619ad3a3e58c792186069f0bc X-RootMTR: 20180410124355epcas2p272d4a06619ad3a3e58c792186069f0bc 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 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 cdd6f59..2695021 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -242,13 +242,13 @@ static int qoriq_tmu_probe(struct platform_device *pdev) goto err_tmu; } - thermal_zone_device_toggle(data->tz, true); - 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_device_toggle(data->tz, true); + thermal_zone_device_check(data->tz); + return 0; err_tmu: -- 1.9.1