From patchwork Tue Jul 17 10:12:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10528829 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 C75686020A for ; Tue, 17 Jul 2018 10:13:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA27428BAD for ; Tue, 17 Jul 2018 10:13:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE7D428BB5; Tue, 17 Jul 2018 10:13:22 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham 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 7459C28BAD for ; Tue, 17 Jul 2018 10:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730444AbeGQKpB (ORCPT ); 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-Google-Smtp-Source: AAOMgpekmsXfi2MWlBbtcbF0Q1s04hzrdqKSrZPeOIvMsWS69Edt3e1Igum9ThWEowzKYr03q4PG8A== 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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;