Received: by 10.213.65.68 with SMTP id h4csp3853406imn; Tue, 10 Apr 2018 05:48:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+ZTx+omAzg2vi/fSYCnXVsI2pbUG4MZDCmU0W5+3C58wdiFoE3LJqpd5P5LM7Jhf5Zyeza X-Received: by 2002:a17:902:7611:: with SMTP id k17-v6mr312321pll.244.1523364511894; Tue, 10 Apr 2018 05:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523364511; cv=none; d=google.com; s=arc-20160816; b=us/8KJ5i01QECq2gKIfMPvZPKdGS5+1I1AgQ3KxWOgXxwy4++1O18lBgu2AAoq+y6K gTLI64QR25DoF6LhbV56k/yrLUCampvhzbsDjZujJ3ztNhnM37qwk21JjvJkleVddw1W 7m/Vif+8wxzGZDIBi8I60v1L3wBMxyetf7aGPDkB7OC/nNoFO+MYG+1PBtl7vsOojUBS LZtuKyAfTpicjJMZECK13BZS5gXeSJVMoH0f+sL4yruv/pTnLvRzKgxNrDcEpaWBO46L EZA/KT9CgqIRHOmraGoiCH0CttzbJNvKkGx8IiAJqxHJ0eYJh7c3ZjJGNPUanAryqPG6 IQAw== 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=BUCtw3FkftzfhiCb1pcZqkGS4JmONoCOR/fNjvAHbwU=; b=e4pGM2/Nl+fJ60/oe3Y/0I3/RFyjyAl7/gE5M75pTsVchJmHkiJ7H1qX5Cs1BTDrnQ lTTkJiP+tC95plvDacu2oRz2Ny35r50StIwD6w8qQ1ke9gaiy1P/C7eOlkrRvLqIdE6y lnpYp/bubvzh1qnrMkGM2ClvbnvgbpbLJ7p//YAzh/VhN87FOLk6ULjr94MjKkkD8gAQ bq+21L69U/eZLgGuH++jWUatPlMaaczyMBYqngQKBpDWHvJ9l4Cp3eN4aMiNfCbP9/7p 5XCH+E3EooYrenGQEdiUpuhQdkVuEM+SRhl6WRMzg2SLwi9na4LUomQ393zJDBs30Z76 UnBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=IOQwB5xD; 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 d15-v6si2644711pls.232.2018.04.10.05.47.54; Tue, 10 Apr 2018 05:48:31 -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=IOQwB5xD; 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 S1753669AbeDJMoJ (ORCPT + 99 others); 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 7Q6njXWAD6QBuGxuxXhDD2BrrZTXh2Cn9d16A0Ztg5rOVZFjIUhJoCZjA6Hh4sydjegxqDdr Mf7eUgDf5Pwg9MDtLthiBDvYeC4mguX2xx/w5ZgYLjE2wjc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6Uvn+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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 1.9.1