From patchwork Tue Apr 10 12:42:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10332997 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 32AB36053B for ; Tue, 10 Apr 2018 12:46:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2530628815 for ; Tue, 10 Apr 2018 12:46:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19F3228CDF; Tue, 10 Apr 2018 12:46:00 +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 C022628815 for ; Tue, 10 Apr 2018 12:45:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753645AbeDJMoJ (ORCPT ); Tue, 10 Apr 2018 08:44:09 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:53059 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753595AbeDJMoE (ORCPT ); Tue, 10 Apr 2018 08:44:04 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180410124403epoutp04c48ef5ee2c3eabdba2d7eb15257626e0~kE7U9cNrp0491204912epoutp04F; Tue, 10 Apr 2018 12:44:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180410124403epoutp04c48ef5ee2c3eabdba2d7eb15257626e0~kE7U9cNrp0491204912epoutp04F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523364243; bh=BUCtw3FkftzfhiCb1pcZqkGS4JmONoCOR/fNjvAHbwU=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=IOQwB5xD9PWoS8fq8IjIBYTcvt4QbV4xfRzDmytEzPQcy4MwF2BVlRX7ErSBb5V8L 3TLDY6CVD54AnznbHsOuv9vjQaiTca2JsC6QxyBrv4OpZoixTdRWMicZsXqE7eJ+e0 jNcgTR7NZF9nTQVEAIts1kkzGMoo9VMN0SSEXl3o= Received: from epsmges2p3.samsung.com (unknown [182.195.42.71]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180410124402epcas2p28f884015eec13ed81be3600779dd8b94~kE7Us7Joc0601106011epcas2p2X; Tue, 10 Apr 2018 12:44:02 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 32.D0.04072.291BCCA5; Tue, 10 Apr 2018 21:44:02 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180410124402epcas2p25249fff958ca0f54094d43275ffa47a7~kE7T_IFnz2958729587epcas2p27; Tue, 10 Apr 2018 12:44:02 +0000 (GMT) X-AuditID: b6c32a47-0fbff70000000fe8-d4-5accb1926aa6 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 8E.2E.03827.191BCCA5; Tue, 10 Apr 2018 21:44:01 +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:44:01 +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 10/17] thermal: rcar_gen3_thermal: enable/check sensor after its setup is finished Date: Tue, 10 Apr 2018 14:42:04 +0200 Message-id: <1523364131-31059-11-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: H4sIAAAAAAAAAzWSe0hTYRjG+3bOzo6zxWlK+9AwW/iHRl4q8cOiLIROWBBBF0ZUB3dQc17Y UckIMhWdztlURB1eQrs5MtPUTVNr3ubSrLBM1CzFRI28MNBuVs6j/z3f+/wenveFj8Sk2UI3 Mio2gVXHMio5IcabOr2D9uXX9Sv8Cw3+qK64Voim7VaAanTdOKp4PyREL28PAvRv8psQvTKl ClC6oRJH96YmRGiwpZRAdl0XQKXzoyI0NZFLoJkGGap/NEygny3lOGobt4OQ7XTqQg9BGz6/ JuhmwycR3TgSSFe1zgroemMWQY8NtRK0Lm2eoHMbjIA2DZVjdG/RCk5bh00C2l7vcUaiEB9W sqqoJFbtd+SqOHKofVIYn0lef2DzSwETRDZwIiF1EBZ9bcazgZiUUmYAqzVNQv6xAmDXnA1s Ui2WdAFvPAdQa9ZvUL8ArDKNYg6KoIJhXqZxLUGSrlQYbHhMOhiMKsHh4lg35pi7UEpYteTp kDjlBcuehTuSEuokHGxsFvJdHtDWU7Cundbmv9sW1qsgpRXB4eoSnIdCocHWvnGCC5yzNoh4 7Q6njXWAD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VpnmEjHhpdVJ7qnnpasvRbxPuhD/kavg2U0ehsoYvy7NWedjrs3mlLh/ZUPHhvtLZ7Mc PyMp+fS+5aXL+7hibr/ZkL3u26U7On4iIj/udkwJef36XAan6Uvn+F/rY607ZEPPZTUwh6z6 s6X9V3H1en3O31MOmLut59W59vpzl+JvJZbijERDLeai4kQABvtNH3MCAAA= X-CMS-MailID: 20180410124402epcas2p25249fff958ca0f54094d43275ffa47a7 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180410124402epcas2p25249fff958ca0f54094d43275ffa47a7 X-RootMTR: 20180410124402epcas2p25249fff958ca0f54094d43275ffa47a7 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 setting tsc->zone and checking ntrips. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/rcar_gen3_thermal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c index 87061b1..98d418b 100644 --- a/drivers/thermal/rcar_gen3_thermal.c +++ b/drivers/thermal/rcar_gen3_thermal.c @@ -429,9 +429,6 @@ static int rcar_gen3_thermal_probe(struct platform_device *pdev) goto error_unregister; } - thermal_zone_device_toggle(zone, true); - thermal_zone_device_check(zone); - tsc->zone = zone; ret = of_thermal_get_ntrips(tsc->zone); @@ -439,6 +436,9 @@ static int rcar_gen3_thermal_probe(struct platform_device *pdev) goto error_unregister; dev_info(dev, "TSC%d: Loaded %d trip points\n", i, ret); + + thermal_zone_device_toggle(zone, true); + thermal_zone_device_check(zone); } priv->num_tscs = i;