Received: by 10.192.165.148 with SMTP id m20csp406431imm; Wed, 2 May 2018 02:19:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqq1un5PgVNwCG+1bJRZhV2ReC8BmLRTVgJKmf9jv2ACUfhVO8+VEmw3p6+NDTN8tkm1xPL X-Received: by 10.98.7.140 with SMTP id 12mr7316925pfh.178.1525252791630; Wed, 02 May 2018 02:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525252791; cv=none; d=google.com; s=arc-20160816; b=Gi4CQfrh0PcpcdxG9XUeUdkmbxNKSY2UUFNreq9aN/Cnnb19eiAV10GfLoDrX74nWm n5Uyo0AeUQbLIHg0v/50bOXHHta40UuNo6foox9Y+y/pwzESyVjn8oCjJuNfqWgy1Wbd qsDGr/Yv2qLG7IsSkWWKME7V3qbiAL1TuYuvp5o07wtEIDMfIWpDrf7ex0osO2vtYSMn Grh5kmLVztgqWhbwOKUWyWcUY+nvEFy/T5Q0VwlNLOpwlAXvnDqwkkTPGHJ3cDRi758w BaswOHt+8pFA+79dX7F4qikGmNlVxOR5EGuv+pQ9EK1drD+Vy481PtgUvH93Rcws1KQo Zj9A== 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 :content-transfer-encoding:mime-version:in-reply-to:user-agent :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=l0e9PpaUkrW5DbEt3F/aXXl7PvvOkUqTTfi4NbqHjaQ=; b=YxPZ3t5tlI5Znk97zJaDqQN8jBuyElsp9p8CclQWq1V/aRzha+DXcyXNopxWpz6SLT +ngKuLKKbjggCYWh6DI23db7rOQfX8YXgdfb3Fvp4AbHjziVyH1fZrEAr66M974OZxuy 0JY7Q5kB1BY+NlBjEv8k4/UFMQbVIixxMgDsytM2hbPm3SpWd8St0uMgRGrHIRNF2mdZ bRpGTr80Q54ebasYWydOwCA/MkjgBhTX0tLQ1cx3b8tmd7asST9PShlj4wc7h202k+dd ubyu9hPHepjyf4kmFa1cEv/H96p1XJsOfUa4yz1KVg8+UcQJP9EPEYNqy3m/GPcGBSwH W3uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=QdQxz7p5; 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 b3-v6si5438306plc.14.2018.05.02.02.19.37; Wed, 02 May 2018 02:19:51 -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=QdQxz7p5; 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 S1751302AbeEBJTN (ORCPT + 99 others); Wed, 2 May 2018 05:19:13 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:53888 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbeEBJTL (ORCPT ); Wed, 2 May 2018 05:19:11 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180502091908euoutp01e335cf3a76ace65cfb95e33a55615bd9~qyUs87zvu3204232042euoutp01c; Wed, 2 May 2018 09:19:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180502091908euoutp01e335cf3a76ace65cfb95e33a55615bd9~qyUs87zvu3204232042euoutp01c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1525252748; bh=l0e9PpaUkrW5DbEt3F/aXXl7PvvOkUqTTfi4NbqHjaQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=QdQxz7p5zRkyX3hYKHd3xU3u1yRVYkLPZacTH/Hp1rS1N3euSXvJv7fMnZqgvgBeA fnxmDHnk06GoCJenSyCWMcEcT8OxLGD7Zm6krLKxl0QoSqzutH3BB8Q06VrL5kSWc4 zefcfQDjHBuFlhZX/Hi4DXw0uzcTfXx+Bx3/xMco= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180502091908eucas1p13a1389cbf5dd8e713465a8ed206af501~qyUsXR7Uw2954429544eucas1p1r; Wed, 2 May 2018 09:19:08 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id D9.94.17380.B8289EA5; Wed, 2 May 2018 10:19:07 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180502091907eucas1p17017c6793fb49f0c90660b3042b803bb~qyUrjQfRm2051620516eucas1p1n; Wed, 2 May 2018 09:19:07 +0000 (GMT) X-AuditID: cbfec7f4-b4fc79c0000043e4-c6-5ae9828b8ef0 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 22.1B.04183.B8289EA5; Wed, 2 May 2018 10:19:07 +0100 (BST) Received: from amdc3058.localnet ([106.120.53.102]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P830063HGJV5P70@eusync3.samsung.com>; Wed, 02 May 2018 10:19:07 +0100 (BST) From: Bartlomiej Zolnierkiewicz To: Daniel Lezcano Cc: Eduardo Valentin , Zhang Rui , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/18] thermal: exynos: fix trips limit checking in get_th_reg() Date: Wed, 02 May 2018 11:19:06 +0200 Message-id: <2166794.yRDuDm3vze@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <20180501093914.GG27619@mai> MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset="us-ascii" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrIIsWRmVeSWpSXmKPExsWy7djPc7rdTS+jDNZ907CY91nWYv6Va6wW l3fNYbP43HuE0WLG+X1MFk8e9rE5sHnsnHWX3WPxnpdMHneu7WHz+LxJLoAlissmJTUnsyy1 SN8ugSvjQtcz9oJGjooT0xewNjAuZ+ti5OSQEDCRWLzoICuILSSwglHixEvzLkYuIPszo8TJ n80sMEUv+3+yQSSWMUocWjuVEaLjN6PE9PU2IDabgJXExPZVYHERAT2JxvdtTCANzAKrGCX6 P71jAkkIC4RJnFjxEWw1i4CqxLsbj8BW8wpoSmyfNgesWVTAS2LLvnawek6g+MGl2xghagQl fky+B3YRs4C8xL79U1khbB2Js8fWMYIskxBYwSYxZW4DO8TZLhLXrh6A+lNY4tXxLVBxGYnL k7tZIBqaGSW+7djDDJGYwCixZ70QhG0tcfj4RagNfBKTtk0HquEAivNKdLRBlXhI7Gh5wARh O0rM2nWOHRIqtxglzi5wmMAoOwvJ3bOQ3D0Lyd0LGJlXMYqnlhbnpqcWG+WllusVJ+YWl+al 6yXn525iBCaE0/+Of9nBuOtP0iFGAQ5GJR5eg7wXUUKsiWXFlbmHGCU4mJVEeFd2PIsS4k1J rKxKLcqPLyrNSS0+xCjNwaIkzhunURclJJCeWJKanZpakFoEk2Xi4JRqYGy0mzEta4NYaEr2 LjXzMK5jRtte/mgr7zmj93Fu9K5/lxueTO6LP9H57p3jGtPuJX9+h1y3/uZ2eB33OZ95m064 Gc7f/eT7orWXXnFcNps4rfDJovrC2XXGst79qkGmaUWH4iRrLsoUdDTMrde9UjA3WX1d0x3B l4WL5DSvPPUVTumZMcfXdaYSS3FGoqEWc1FxIgCO4y9EBAMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsVy+t/xq7rdTS+jDFbP4baY91nWYv6Va6wW l3fNYbP43HuE0WLG+X1MFk8e9rE5sHnsnHWX3WPxnpdMHneu7WHz+LxJLoAlissmJTUnsyy1 SN8ugSvjQtcz9oJGjooT0xewNjAuZ+ti5OSQEDCReNn/E8jm4hASWMIoMe9AFwuE85dR4sne vawgVWwCVhIT21cxgtgiAnoSje/bmECKmAVWMUqsbO1lBkkIC4RJnFjxEWwsi4CqxLsbj8Ca eQU0JbZPmwPWLCrgJbFlXzsTiM0JFD+4dBsjxLY2RonzV6cyQTQISvyYfI8FxGYWkJfYt38q K4StJbF+53GmCYz8s5CUzUJSNgtJ2QJG5lWMIqmlxbnpucVGesWJucWleel6yfm5mxiBobvt 2M8tOxi73gUfYhTgYFTi4TXIexElxJpYVlyZe4hRgoNZSYR3ZcezKCHelMTKqtSi/Pii0pzU 4kOM0hwsSuK85w0qo4QE0hNLUrNTUwtSi2CyTBycUg2M0feuOrztCT3Rrbk78t3FaNeDIqcX 2Ph/iHbhOv3y9qMDz3WP7agplaiaHfn0xZ6EJ1lbljxNrtNWvryJOaajZllXXadG7r1DolNm 2J2VqHxwoWCy6sacpX8m3TR5Iqj45p+HVFXKcfWeE/viPZSet/Ox3JQJiru7OtF+X5bSjQhv puaTMxX8lFiKMxINtZiLihMB2xQJ5lkCAAA= X-CMS-MailID: 20180502091907eucas1p17017c6793fb49f0c90660b3042b803bb X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180502091907eucas1p17017c6793fb49f0c90660b3042b803bb X-RootMTR: 20180502091907eucas1p17017c6793fb49f0c90660b3042b803bb References: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> <26762578.lZtk787caq@amdc3058> <20180501093914.GG27619@mai> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, May 01, 2018 11:39:14 AM Daniel Lezcano wrote: > On Mon, Apr 30, 2018 at 05:48:29PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On Monday, April 30, 2018 05:34:31 PM Daniel Lezcano wrote: > > > On Thu, Apr 26, 2018 at 01:51:21PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > > of_thermal_get_ntrips() may return value bigger than supported > > > > by a given SoC (i.e. on Exynos5422/5800) > > > > > > Can you elaborate a bit ? > > > > Odroid-XU3 DTS file [1] define 6 thermal trip points (2 passive ones) > > while data->ntrip is 4, the current code works fine by accident as > > the threshold values for trip points 5 & 6 don't fit into 32-bits > > threshold value (however since they are passive ones this is okay). > > Ah, I see. data->ntrip is the SoC specific tmu max value capping what is > defined in the DT, right ? It is SoC specific max value for active + critical trips points. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics