Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3342352imm; Tue, 17 Jul 2018 03:14:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeeBWK1C8vgmamS24fvhbRIgyEGw4UZZqzJVVQGRzyKCMdQgt2auRZotLAer02V6e2q1J8g X-Received: by 2002:a62:591a:: with SMTP id n26-v6mr60233pfb.94.1531822451434; Tue, 17 Jul 2018 03:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531822451; cv=none; d=google.com; s=arc-20160816; b=JxgulgyJ8THqeY9Ec3xIrzYbDvzdef3Kq1b+llj2l089F67ioh2exGGhcD7x0MgkGe mGa+PX4fjQt9Gns7I4XIHpcoocTLufnOlW91Qcm3e2FSeB+a1u8emr4RHlpP3lNcbSjq SG4O5ZnoC94qFxIW/2U91C78nMa6cBB+nnCTYsM7lYetpfwtgdQvj/9z+snBlgYlJUi6 oiJoVH+Z88QiyvXwX9+I8rA+v4XbwXcQMWis//ESaOpvaJKXQzkv7UpLckWIOLoD+CC9 ZGGU7HUxcyQUSlbt5rQuV1vKdR9A2gJ7GRDIh7unm7xNInepCoSjnmSn1VVMAOqivrwg SVxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=MCRS90iDj+umT3k388GQjKhiMKmkdwkS3WxFEVMZyvc=; b=tj/Lc8D38t6aZQeIEjjTygfgcVwXGt8FFP7xcQDxNn4+TqSR6u5gPO1C12NJkXSRQN 6sI41AlhyeuRG1/yvUBIfhLImDG8ikNM/pl8GzCgeDELKIS88gQYzcVaG7tEWLATc9zO 17d4TOLPdOLC3FBiORx/lkC6wb7+ymT2Q5yobK3OrAW0A6EGI88KOHTotCY+DfdpzbdY 0r9G2nV6zFtdqU3ty3WO7QkpKpWAusXw9kq7q2I6YKt8/FcMf913eP0lUgNg8XT8mnkB ybHGcuB+ZREnMp/fXzl7awq7g7Zd1vbzVwJCNQ0vQ34sLtKQOe5uPBlfeWVmN50ENi49 KLcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pq2VjW7j; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w126-v6si613098pgb.11.2018.07.17.03.13.56; Tue, 17 Jul 2018 03:14: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=@gmail.com header.s=20161025 header.b=pq2VjW7j; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730922AbeGQKpB (ORCPT + 99 others); Tue, 17 Jul 2018 06:45:01 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:43679 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729703AbeGQKpA (ORCPT ); Tue, 17 Jul 2018 06:45:00 -0400 Received: by mail-pf0-f194.google.com with SMTP id j26-v6so276523pfi.10; Tue, 17 Jul 2018 03:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MCRS90iDj+umT3k388GQjKhiMKmkdwkS3WxFEVMZyvc=; b=pq2VjW7j/j/hrWpljvC4n6gisBMDBAz1quhlefYcklNUNi/jOncq1Jac0TJ//pc03Q M/it0gY4jqz3LOV36FLHdr8puxEY3chkXftPyRwZxOtORWSslweGIURQlHpBHShln9Hk rAd0WFEhvAWsVVacCcpzUS8bS7MHApxLTXlXkfI/MTKq9N22xsYOzogXXpXztJVba7h9 InL0jJOc3TpLdbBPlkGd2uyM9LOFx8UpYPqV66WhqLuCEwHwbXrzqLZf8XSEWVfDbZsd W+zSO+nWKa5ixHrGXInm+2Ose1zzSei2uSxZacEWUbPgBFSSyWbIPQWQguw6UCmL4Pxd FxuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MCRS90iDj+umT3k388GQjKhiMKmkdwkS3WxFEVMZyvc=; b=RIn4ozRi5Zf/uM4LItJCMSN+98291JkmbplEHtAc6w1M86Vl5QeLVFx+Sn6OnS2XeD 671AjuSeFHHiK/tKXkCBlYknT69Baa7yeJBvo62BHwHGNtQ/lH3AuM4xlCRD9a0Rs0AY TvnoKiJWykS87DuejFT8Ir77VXm57zTgwYBFHKQDmQycBJhOm4D5kw60vQ04bSHAvySd JCGbwwuVVxwuWCri/isukurQrG6P1T0jMjbKp26RaYuQpQH7+XEwIsurLvqyHIrDxFDw be2Sv7cwiOYrfB4rCg8QRmc1JvcOsBJiJRi+uirJWHit+mw236nprkCVAeCg80wNWpwM Jrww== X-Gm-Message-State: AOUpUlH1nx0WZAUh2uzvX6daGcz04ubJnksfHUXnH9PzeefM1di51xkv mrR7EdkeMTG98WzAyzOOdno= X-Received: by 2002:a63:5b0d:: with SMTP id p13-v6mr1010449pgb.202.1531822388217; Tue, 17 Jul 2018 03:13:08 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.210]) by smtp.gmail.com with ESMTPSA id 203-v6sm2809963pgb.14.2018.07.17.03.13.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jul 2018 03:13:07 -0700 (PDT) From: Anand Moon To: Bartlomiej Zolnierkiewicz , Zhang Rui , Eduardo Valentin , Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Mark Rutland Cc: linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Anand Moon Subject: [PATCH 4/5] thermal: exynos: fixed the efuse min/max value for exynos5422 Date: Tue, 17 Jul 2018 10:12:21 +0000 Message-Id: <1531822342-4293-4-git-send-email-linux.amoon@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531822342-4293-1-git-send-email-linux.amoon@gmail.com> References: <1531822342-4293-1-git-send-email-linux.amoon@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org e-fuse range min~max range is 16~76. if e-fuse value is out of this range, then thermal sensor may not sense thermal data properly. CC: Bartlomiej Zolnierkiewicz Signed-off-by: Anand Moon --- drivers/thermal/samsung/exynos_tmu.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 4a2733c..6481d91 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -940,11 +940,13 @@ static int exynos_map_dt_data(struct platform_device *pdev) data->reference_voltage = 16; data->efuse_value = 55; if (data->soc != SOC_ARCH_EXYNOS5420 && - data->soc != SOC_ARCH_EXYNOS5420_TRIMINFO) + data->soc != SOC_ARCH_EXYNOS5420_TRIMINFO) { + data->min_efuse_value = 16; + data->max_efuse_value = 76; + } else { data->min_efuse_value = 40; - else - data->min_efuse_value = 0; - data->max_efuse_value = 100; + data->max_efuse_value = 100; + } break; case SOC_ARCH_EXYNOS5433: data->tmu_set_trip_temp = exynos5433_tmu_set_trip_temp; -- 2.7.4