Received: by 10.192.165.148 with SMTP id m20csp1974232imm; Thu, 26 Apr 2018 04:55:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/hKSj6o/7q35enh4UVhFL2FG4dWynEnwPoARv0GgKpq729rTzmu8xpIX/Af+kzQKckQZiJ X-Received: by 10.101.97.173 with SMTP id i13mr27042660pgv.449.1524743724455; Thu, 26 Apr 2018 04:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524743724; cv=none; d=google.com; s=arc-20160816; b=Gvi3v9H2JUHneDI9Zp6IzEfh/6BzycVPsWsspu2199Mmcl04NcFkF4Bta1fCkMRmnU QFboAi6w68R7Z3cdKNcxLAyU0WCRkLv3WysnD907TUBFh156ddFflkjBJAva37OZSLAW ycLpj/UINhUOIDzGuDfI/T7r2d8CRjsASZ3gmciJcnTrfMVRhv5QrtHHCfiQhl3kH3tt Cc7J2gJIi6sF8doUUDFeJ2nkoQM8BsTWPKWWzNN7DWkacMzX0lPWyCFaGMUbp/NhIWch YsIj+5dLll54RKCdJLYyQP+rn1OcbtVnfFoEfq+y65PVeXXUaKOn9RnPlgdQa9D7F6AF jngw== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=IfGZWysBFhz51kp74b3nqNCsJUtxJarffkZ7ZkVN+/g=; b=H9PQr616uqWA5z0HDXGBTrQPLrCCr9m6zzr1S8YUes67XCd/CPsjTplS4O7ItUW1o8 GXiSEwhcWTYT7kMVs/+KbbgTd3oNkimnZZWcyHprrEl4eITsVpirY9rVgkEAnuNv4HNg F/qvH/KDpQPEWt3MRsaw5EaUNPwpPDjEEtksKYKewKVqT0Fn01l3mt0+SSmgNbW6sClT NmlHIdsWDuthAOzFBPZJDgcuvtXnWlMXgTtIOvqFYTMokVbOEVlIYzX/B5JJda4QIkll bZweOyoxhQ+Od5mFe+xbQviyAmlh8HCPBGESFohBBReP/j2gtwES//6UR1F/UlgCYbhR eOpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GKsM59co; 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 p15si4144484pgq.478.2018.04.26.04.55.10; Thu, 26 Apr 2018 04:55:24 -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=GKsM59co; 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 S1755915AbeDZLwI (ORCPT + 99 others); Thu, 26 Apr 2018 07:52:08 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:48543 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755063AbeDZLwC (ORCPT ); Thu, 26 Apr 2018 07:52:02 -0400 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180426115200epoutp0232f9f1dbe5de53ad99ffeb2531f51ad2~o_ic2y_jK1528215282epoutp02l; Thu, 26 Apr 2018 11:52:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180426115200epoutp0232f9f1dbe5de53ad99ffeb2531f51ad2~o_ic2y_jK1528215282epoutp02l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524743520; bh=IfGZWysBFhz51kp74b3nqNCsJUtxJarffkZ7ZkVN+/g=; h=From:To:Cc:Subject:Date:References:From; b=GKsM59coquCtZCaoaAEcZdpGQHCHWmiTyTfXBvjkmxOvN+LuV4RbzSqp48Fph9214 PvifRluobaHMvu03wx02GzbfX5D8v0FFhQe/MVSysh8GMs7IpZOUV8NcGFGMndIkmB NdWSIAACvFi+7UE0PTWfu8hv5pXCIdOkcz9dsv1Q= Received: from epsmges2p2.samsung.com (unknown [182.195.42.70]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180426115200epcas2p31ce74358497573b0f00391e0e0486522~o_icurWFl0036200362epcas2p3K; Thu, 26 Apr 2018 11:52:00 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id A4.84.04132.F5DB1EA5; Thu, 26 Apr 2018 20:52:00 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180426115159epcas2p3b8d995ba552b403b5052f74970fdef0f~o_ib9VXhe0036100361epcas2p3S; Thu, 26 Apr 2018 11:51:59 +0000 (GMT) X-AuditID: b6c32a46-145ff70000001024-96-5ae1bd5faa3f Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 6C.2B.03817.F5DB1EA5; Thu, 26 Apr 2018 20:51:59 +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 <0P7S00GD7JMBQG00@mmp2.samsung.com>; Thu, 26 Apr 2018 20:51:59 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Eduardo Valentin Cc: Zhang Rui , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com Subject: [PATCH 00/18] thermal: exynos: further fixes and cleanups Date: Thu, 26 Apr 2018 13:51:15 +0200 Message-id: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNIsWRmVeSWpSXmKPExsWy7bCmqW7C3odRBg0eFhtnrGe1mH/lGqvF 5V1z2Cw+9x5htJhxfh+TxZOHfWwObB47Z91l91i85yWTR9+WVYwenzfJBbBEcdmkpOZklqUW 6dslcGVcbbrGVPBdoOLBimNsDYw9fF2MnBwSAiYSmz9PYOti5OIQEtjBKHFpyWtmCOc7o8S2 1f+ZYaqaFx5ngkhsYJSYe/0CC4Tzi1Hi9P/zrCBVbAJWEhPbVzGC2CICWhInLm0H62AWmMMo MathNwtIQljASeLtzytsIDaLgKrEgte3wZp5BTwkJn/byASxTk7i5LHJrBD2Q1aJSfN5IWwX iZuPvjFC2MISr45vYYewpSWerdrICLJMQqCZUeLbjj1Qd09glNizXgjCtpY4fPwi2FBmAT6J jsN/gZo5gOK8Eh1tQhCmh8SGPVwQ1Y4StzYuZwIJCwnESry8Fj2BUXIBI8MqRrHUguLc9NRi owIjveLE3OLSvHS95PzcTYzgKNNy28G45JzPIUYBDkYlHt6AhQ+ihFgTy4orcw8xSnAwK4nw xrc+jBLiTUmsrEotyo8vKs1JLT7EKM3BoiTO2+B7JkpIID2xJDU7NbUgtQgmy8TBKdXA2Ow2 72KQeAjj5H3R99POBS7rXiwmcPr45vdPvu090Rn/TMiZk6fz5gaNGAehcPWqn4f3b58p8l1g zpHS/EnzMk6watV1u+1cvayu2cuUw69n04zXQdYZJZf2/2jqW3Z78vdvF9xli9n5lCMqTzQ/ Xjfl59/eA06cvyboMU49lNYcksZml9YzS4mlOCPRUIu5qDgRAIRfAPquAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFJMWRmVeSWpSXmKPExsVy+t9jQd34vQ+jDI4t4LHYOGM9q8X8K9dY LS7vmsNm8bn3CKPFjPP7mCyePOxjc2Dz2DnrLrvH4j0vmTz6tqxi9Pi8SS6AJYrLJiU1J7Ms tUjfLoEr42rTNaaC7wIVD1YcY2tg7OHrYuTkkBAwkWheeJwJxBYSWMco8esQexcjF5D9i1Gi Z8EcsASbgJXExPZVjCC2iICWxIlL25lAipgF5jBKPF8BUSQs4CTx9ucVNhCbRUBVYsHr26wg Nq+Ah8TkbxuZILbJSZw8Npl1AiPXAkaGVYySqQXFuem5xUYFRnmp5XrFibnFpXnpesn5uZsY gSGw7bBW/w7Gx0viDzEKcDAq8fAGLHwQJcSaWFZcmXuIUYKDWUmEN771YZQQb0piZVVqUX58 UWlOavEhRmkOFiVxXv78Y5FCAumJJanZqakFqUUwWSYOTqkGxlM6Gt5zA/MFeAObbx3/0M50 9+GVxg89ntzhawKtHkYWFsx2uJWZFbfGU/GBI5vG35ZDU/4ytl/3CogJCxfv/sy/wLy9mKX7 wrOm+7E8L1dslAzfaXy1j0Xyyps9FVfZBct812Sn8/A7Ftw6WyWmJBeZ2WOm/epwy19ngZaE hqflKczBK2YqsRRnJBpqMRcVJwIAkKXTeP0BAAA= X-CMS-MailID: 20180426115159epcas2p3b8d995ba552b403b5052f74970fdef0f X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180426115159epcas2p3b8d995ba552b403b5052f74970fdef0f X-RootMTR: 20180426115159epcas2p3b8d995ba552b403b5052f74970fdef0f References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset contains Exynos thermal driver fixes and cleanups. Highlights: * Move code valid for all SoCs from ->tmu_initialize method to exynos_tmu_initialize(). * Add ->set_trip_[temp,hyst] methods and convert ->tmu_initialize method implementations to use them. * Remove bogus trip reporting to user-space. The patchset is based on top of: - "[PATCH 00/14] thermal: exynos: pending fixes and cleanups" (https://lkml.org/lkml/2018/4/16/256)) - "[PATCH] thermal: samsung: Remove support for Exynos5440" (https://lkml.org/lkml/2018/4/26/405) Tested on Exynos4210 based Trats board and Exynos5422 based Odroid-XU3 Lite board. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics Bartlomiej Zolnierkiewicz (18): thermal: exynos: fix setting rising_threshold for Exynos5433 thermal: exynos: always check for trips points existence thermal: exynos: always check for critical trip points existence thermal: exynos: check STATUS register in exynos_tmu_initialize() thermal: exynos: use sanitize_temp_error() in exynos7_tmu_initialize() thermal: exynos: fix trips limit checking in get_th_reg() thermal: exynos: remove threshold_code checking from exynos4210_tmu_initialize() thermal: exynos: make ->tmu_initialize method void thermal: exynos: clear IRQs later in exynos4412_tmu_initialize() thermal: exynos: move IRQs clearing to exynos_tmu_initialize() thermal: exynos: add exynos*_tmu_set_[trip,hyst]() helpers thermal: exynos: do not use trips structure directly in ->tmu_initialize thermal: exynos: set trips in ascending order in exynos7_tmu_initialize() thermal: exynos: move trips setting to exynos_tmu_initialize() thermal: exynos: check return values of ->get_trip_[temp,hyst] methods thermal: exynos: cleanup code for enabling threshold interrupts thermal: exynos: remove unused defines for Exynos5433 thermal: exynos: remove trip reporting to user-space drivers/thermal/samsung/exynos_tmu.c | 548 ++++++++++++++--------------------- 1 file changed, 215 insertions(+), 333 deletions(-) -- 1.9.1