Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp828015imm; Wed, 17 Oct 2018 08:56:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV63sz4vnUnSmq5v37zaN6aClyJrAVfIljC2gDVczBspjoOZExlByKAR2+uwzFthkqgFfXbs+ X-Received: by 2002:a62:d40d:: with SMTP id a13-v6mr27734662pfh.23.1539791771691; Wed, 17 Oct 2018 08:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539791771; cv=none; d=google.com; s=arc-20160816; b=NAUMiIvmpJGuhR+8fmfncK26WQuqjz4XtQJnVbO9PkOpZsQAwl1qrqeXg5MDPMqbGA V8YYNFL02y1mJOS3LJA9gVKLZ7744Tll30RZMpOW1Yxc2yXQi+oKdcuq+hRNZtIle7e8 a7o3HXeXduEnTk06cFRWgmwE+Ifh7Wx9j6r4yhAFtPcyXs+YuxnkYwid36eU6dd8W5yG esffyeSPNjlpCC/BhHiBJtzVBrZ7ahqLpK3W/G99eHcGFkxgN7GFjr9Os24DX40VCB9P rw9EnVSAuup33oiuKmNPxPp0F7Y4Ko2xaXfgm3WJXbYIa8edmX4yAbPy/mHkfQdqtuhj aoEw== 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=LbMNnsGTpMcl/rBDxuDnGfFAAXGRpSxdja42TCVwLdc=; b=rjlrSIRUQ0ukbkzV23c/jaG/Vh63Q474+rxxjEWL8UTEPRul4JHdzdtoc1kUEAiee4 zx2V41XtLOeo5ExCmWjMQmhz1m4wHjDBf4+OUh/2pOCgcwmwfCMNzCopo8UF4M+qfdDN K4Z/xXGEG9VyV7S4q833GMe3sPpRs87BOyrPa+UO30/eItWtmDpJbGUZh9YsLHToFcC5 BUtWlnqRrNrPi9+TlWAzQ0zxsCEsYDhqoe1bpvqcN0B6CvjVOCZ+o64pdj20TlbgOm4X VL2H8nhB9VCLKOEhn2IibIXySNuBW0d8wZYeTcBG7PFgJ4nM8tal7q2+foP7cl7c/10K cV7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="Z+u2/OAw"; 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 y66-v6si17423393pgy.496.2018.10.17.08.55.55; Wed, 17 Oct 2018 08:56:11 -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="Z+u2/OAw"; 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 S1728166AbeJQXvR (ORCPT + 99 others); Wed, 17 Oct 2018 19:51:17 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:18484 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQXvQ (ORCPT ); Wed, 17 Oct 2018 19:51:16 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20181017155454epoutp0362736228c3f58e5f5f49772990c8205e~ecGNos2lr1091710917epoutp03W; Wed, 17 Oct 2018 15:54:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20181017155454epoutp0362736228c3f58e5f5f49772990c8205e~ecGNos2lr1091710917epoutp03W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539791694; bh=LbMNnsGTpMcl/rBDxuDnGfFAAXGRpSxdja42TCVwLdc=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Z+u2/OAwf77eAcrXlU/1k/3qwyDP4lbpG4vgnJeEL+jQIzJfqo0SRDfNSBVlRSZ/6 EQNPSQhbxnk+We9dgs0pYazYXoYXhRI3Q85kZHY+UgkCtcWQYR3QT3TyDbKZnL3Nn0 cyTP87hDSi33PUYirkXygHhOpOe9/87yp8MzDOo0= Received: from epsmges1p5.samsung.com (unknown [182.195.42.57]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20181017155454epcas1p446c53c16fc040b74bd226497dfc4fc1e~ecGNL2-dn0539705397epcas1p4X; Wed, 17 Oct 2018 15:54:54 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id E5.D9.04081.E4B57CB5; Thu, 18 Oct 2018 00:54:54 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20181017155453epcas1p3be6976375c18583bcbebc7ff7853ae50~ecGMQeGj90323503235epcas1p39; Wed, 17 Oct 2018 15:54:53 +0000 (GMT) X-AuditID: b6c32a39-689ff70000000ff1-85-5bc75b4e5db7 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id BD.A6.03743.D4B57CB5; Thu, 18 Oct 2018 00:54:53 +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:53 +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 16/17] thermal: zx2967: enable+check sensor after its setup is finished Date: Wed, 17 Oct 2018 17:52:42 +0200 Message-id: <1539791563-5959-17-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: H4sIAAAAAAAAAzWSa0hTYRjHe7dzzs5Gs9M0fVOQWvhBK01JeC27UBEvKVKUUK6wYSeTvMwd L2V+mDO6iJPMSvHWyowainOuNNOKqZuZGeUF84q17GZTWxlWZOnJb//n//yeGzy0UJZNetJx iSmsOlEZL6ckxP0W3w3rIxQ2xQZ9pSvK1lQIUG1RDYnGnTaAqnVtBLre00eiJ1ndAM29+Uyi jnqtAJ0tvkmgW/YxEepuLKWQU9cKUKljUITsY3kU+mD2QKY7/RSabSwnUPOIE2yXYe2klcLF o88p/KB4WITvDQTjiqaPAmwyXKTwUF8ThXXZDgrnmQ0A1/eVC3F74Q8C2/rrBdhp8t4rjZKE HmPj49JYdcDWo5ITX3rbRSqb+JRhWiPUgBI6B4hpyGyEN67WUTlAQsuYBgBr2i+TfPADwJcd M8JF6n3HlIBPGAGc0k39p34COJn/bYGimE0w/7wB5ACadmPCoLlqYYSQaSPgW6fvvO3KHIZ2 zYp5m2B84MjEHzCvpQyGs9MFJD/LGz618lr8z++a0y9sB5kCEXSMZwl4aBfUNNpFvHaFn2xm 0Xx/yHjBV21beL4QwImflQQf1ABY1Wn9X7wZtthekvxyLtDxPZfki6XwwjkZLzG0FuznTywB cOT3uPASWKkHSwzAnVVxCbEsF6gK9ueUCVxqYqx/TFKCCSy8hl9IA7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7rf16tSNroeeh3fDolvyP3A NtfkUf/iz6fF+dcmHCjg3XmokONa9O0LvPU665hUlFiKMxINtZiLihMBWBlVI3wCAAA= X-CMS-MailID: 20181017155453epcas1p3be6976375c18583bcbebc7ff7853ae50 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20181017155453epcas1p3be6976375c18583bcbebc7ff7853ae50 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 checking sensor coefficients. Cc: Jun Nie Cc: Baoyou Xie Cc: Shawn Guo Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/zx2967_thermal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/zx2967_thermal.c b/drivers/thermal/zx2967_thermal.c index 3c08e1d..4e30b1f 100644 --- a/drivers/thermal/zx2967_thermal.c +++ b/drivers/thermal/zx2967_thermal.c @@ -168,9 +168,6 @@ static int zx2967_thermal_probe(struct platform_device *pdev) goto disable_clk_all; } - thermal_zone_set_mode(priv->tzd, THERMAL_DEVICE_ENABLED); - thermal_zone_device_check(priv->tzd); - if (priv->tzd->tzp->slope == 0) { thermal_zone_of_sensor_unregister(&pdev->dev, priv->tzd); dev_err(&pdev->dev, "coefficients of sensor is invalid\n"); @@ -178,6 +175,9 @@ static int zx2967_thermal_probe(struct platform_device *pdev) goto disable_clk_all; } + thermal_zone_set_mode(priv->tzd, THERMAL_DEVICE_ENABLED); + thermal_zone_device_check(priv->tzd); + priv->dev = &pdev->dev; platform_set_drvdata(pdev, priv); -- 1.9.1