From patchwork Tue Mar 6 14:43:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10262067 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 E1D246055D for ; Tue, 6 Mar 2018 14:51:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCE3929043 for ; Tue, 6 Mar 2018 14:51:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9C3F29055; Tue, 6 Mar 2018 14:51:15 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E43AB29043 for ; Tue, 6 Mar 2018 14:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=eeSUBc3VFkcuKE2Nx7SAxT4Hnfd3rENE1HsdLueTeR8=; b=jy/DNnWZIvOGPnPhrLYS++c0tF I4gm/NMM8mqWtRpINroQcl7ZcbnjmquXoCsciSLgswIB78Neg4ibe/LlaNuWutHYF6PktZU8eZZ29 MSvkZNQ9yuPRL88m9ZmoXQODT2qg3tAjOBpDwtZmCXTULjSGZo7qU9rRa9mYC7WlOcYzHzKCcxO0W kbyrVSjOqdqIrRtQLEAT2HSqgl4cTscM6sNUxM1SzrUdL0tj3wSPIQhRRSbdhmDRAyqJaEXeuLRmn V279/DSyHnHEv0E/wHK29YG6WthtUAd2BjaMT18tg+ugJ6MDDOhTPo0lhsa9GR1EC6+pGT0o+FwG4 z3aHPBzg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1etDvj-0001mv-9U; Tue, 06 Mar 2018 14:51:03 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1etDs3-0006fh-1R for linux-arm-kernel@bombadil.infradead.org; Tue, 06 Mar 2018 14:47:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-reply-to:Message-id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Qu6gQHKW7xoFY22MYs74OIf15MzkHHXPlrpzj9MiUGQ=; b=cDgeHzo/o6vmaYKU+70o9OgKQ O5EahyNS/T+qiuaRBDEN4aLHgJdwe/YRKxlmtjn7ldx7iCgsyGjmnwSKPFijjJDeWPY5CM+eFCBEH Ao8x0t1ogDkaboel89+xzCJA3nIw0HtkcKMuksL9I+zsmdry3N23atFHjm6CPtcRtowLDQMyMWzH3 78XwfOVuzfb+ZxXUZulijgZhDyiijZcgTCDRpDjR/0CsK7rfxMRf4rVOpuLxXTgIUWCs9ApGefxWm LLslfzvXa83QkrKwGJWBg4woODW/YzcjADjv3MZ+m3m5R83spcCX961f2ViQiswsiquK4UJqLjOoO j2I4G7Swg==; Received: from mailout4.samsung.com ([203.254.224.34]) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1etDpn-0001lu-VK for linux-arm-kernel@lists.infradead.org; Tue, 06 Mar 2018 14:44:59 +0000 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180306144446epoutp04bca6899306f8e591fc9526efcedc0560~ZW-vaVZRR1173811738epoutp04Z; Tue, 6 Mar 2018 14:44:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180306144446epoutp04bca6899306f8e591fc9526efcedc0560~ZW-vaVZRR1173811738epoutp04Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520347486; bh=Qu6gQHKW7xoFY22MYs74OIf15MzkHHXPlrpzj9MiUGQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=g1oX0uMZk2KpGRX1HyrLLB1mhHyYxrwDfnL5q7ah7efAlnWq8rAzySDhTz/QeqFCP SWSPNH+Ixme6E0TgEgW1Rlhqc1WfxvHAFPJP1gli5eY5H/rEeXDexgsY9mtqZuNOlw VeogUyxaC0kVkry8EFr6cvbW3UFBWQZM2xEQpkgs= Received: from epsmges1p3.samsung.com (unknown [182.195.42.55]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180306144445epcas1p1da837fb2c17aff825456a5a3059f9e66~ZW-uk7s5E2318623186epcas1p1m; Tue, 6 Mar 2018 14:44:45 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 2A.D7.04137.D59AE9A5; Tue, 6 Mar 2018 23:44:45 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180306144445epcas1p1b2dee15107098f5974e3c41403594ffc~ZW-uJ131d2287822878epcas1p1n; Tue, 6 Mar 2018 14:44:45 +0000 (GMT) X-AuditID: b6c32a37-433ff70000001029-ca-5a9ea95d5deb Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D5.4A.03826.C59AE9A5; Tue, 6 Mar 2018 23:44:45 +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 <0P56000X0BLSFM10@mmp1.samsung.com>; Tue, 06 Mar 2018 23:44:44 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Zhang Rui , Eduardo Valentin , Krzysztof Kozlowski Subject: [PATCH 04/12] thermal: exynos: remove parsing of samsung,tmu_noise_cancel_mode property Date: Tue, 06 Mar 2018 15:43:47 +0100 Message-id: <1520347435-22970-5-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1520347435-22970-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsWy7bCmrm7synlRBm+2yFpsnLGe1WL+kXNA 4so1Vov+x6+ZLc6f38BusekxkHt51xw2i8+9RxgtZpzfx2RxaOpeRoul1y8yWbTuPcJu8eRh H5sDr8eaeWsYPS5fu8jssXPWXXaPxXteMnlsWtXJ5rF5Sb1H35ZVjB6fN8kFcERx2aSk5mSW pRbp2yVwZcz+YFcwWbTi6cwrrA2M7wS7GDk5JARMJJp6pzF1MXJxCAnsYJTovNnEDOF8Z5SY /OIfC0zVr42PWCESuxklulf0sUE4vxgl5vxbygpSxSZgJTGxfRUjiC0iUCIxbVUvI0gRs8BZ Jokd29+BjRIWSJLoPt0JVsQioCqx/NlndhCbV8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pQQb0piZVVqUX58UWlOavEhRmkOFiVx3tt5xyKFBNITS1KzU1MLUotgskwcnFIN jHavPh66zt/XEBegvPTfed4dJ31CZLbJvBDnzO4p3a1W/659VhOr7DbBHbzV4iXiz5NWXuYU O7uOh+3kvjwW5l3GbM25u7P2zhYV3c7lev9cQ8aUjemqOtzls3sKgpp0799WlZZVrhRaZKPJ rvpYeMnkK1eOK9yKX2x5xKvWJOByx3HxK3/alViKMxINtZiLihMByP0kGUoCAAA= X-CMS-MailID: 20180306144445epcas1p1b2dee15107098f5974e3c41403594ffc X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180306144445epcas1p1b2dee15107098f5974e3c41403594ffc X-RootMTR: 20180306144445epcas1p1b2dee15107098f5974e3c41403594ffc References: <1520347435-22970-1-git-send-email-b.zolnierkie@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180306_144456_541078_3FEF8C51 X-CRM114-Status: GOOD ( 11.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, b.zolnierkie@samsung.com, Russell King , Rob Herring , linux-kernel@vger.kernel.org, Kukjin Kim , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP All SoCs use the same value (4) for the noise cancel mode so just make it explicit and remove parsing of samsung,tmu_noise_cancel_mode property. There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/samsung/exynos_tmu.c | 10 ++++------ drivers/thermal/samsung/exynos_tmu.h | 3 --- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 5877dd4..adfd9ef 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -168,6 +168,8 @@ #define EXYNOS_FIRST_POINT_TRIM 25 #define EXYNOS_SECOND_POINT_TRIM 85 +#define EXYNOS_NOISE_CANCEL_MODE 4 + #define MCELSIUS 1000 /** * struct exynos_tmu_data : A structure to hold the private data of the TMU @@ -386,10 +388,8 @@ static u32 get_con_reg(struct exynos_tmu_data *data, u32 con) con &= ~(EXYNOS_TMU_BUF_SLOPE_SEL_MASK << EXYNOS_TMU_BUF_SLOPE_SEL_SHIFT); con |= (pdata->gain << EXYNOS_TMU_BUF_SLOPE_SEL_SHIFT); - if (pdata->noise_cancel_mode) { - con &= ~(EXYNOS_TMU_TRIP_MODE_MASK << EXYNOS_TMU_TRIP_MODE_SHIFT); - con |= (pdata->noise_cancel_mode << EXYNOS_TMU_TRIP_MODE_SHIFT); - } + con &= ~(EXYNOS_TMU_TRIP_MODE_MASK << EXYNOS_TMU_TRIP_MODE_SHIFT); + con |= (EXYNOS_NOISE_CANCEL_MODE << EXYNOS_TMU_TRIP_MODE_SHIFT); return con; } @@ -1153,8 +1153,6 @@ static int exynos_of_sensor_conf(struct device_node *np, pdata->gain = (u8)value; of_property_read_u32(np, "samsung,tmu_reference_voltage", &value); pdata->reference_voltage = (u8)value; - of_property_read_u32(np, "samsung,tmu_noise_cancel_mode", &value); - pdata->noise_cancel_mode = (u8)value; of_property_read_u32(np, "samsung,tmu_efuse_value", &pdata->efuse_value); diff --git a/drivers/thermal/samsung/exynos_tmu.h b/drivers/thermal/samsung/exynos_tmu.h index a5d8c9c..b111a01 100644 --- a/drivers/thermal/samsung/exynos_tmu.h +++ b/drivers/thermal/samsung/exynos_tmu.h @@ -45,8 +45,6 @@ enum soc_type { * @reference_voltage: reference voltage of amplifier * in the positive-TC generator block * 0 < reference_voltage <= 31 - * @noise_cancel_mode: noise cancellation mode - * 000, 100, 101, 110 and 111 can be different modes * @efuse_value: platform defined fuse value * @min_efuse_value: minimum valid trimming data * @max_efuse_value: maximum valid trimming data @@ -57,7 +55,6 @@ enum soc_type { struct exynos_tmu_platform_data { u8 gain; u8 reference_voltage; - u8 noise_cancel_mode; u32 efuse_value; u32 min_efuse_value;