Received: by 10.192.165.156 with SMTP id m28csp461624imm; Fri, 13 Apr 2018 02:09:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+knAfG5e1xMluvPV8SF8A3fkoYLt18V25bgG5iCNDeH4lGIgVLYfTePW4eDSRYaWeJVh72 X-Received: by 10.99.119.15 with SMTP id s15mr3477550pgc.211.1523610583950; Fri, 13 Apr 2018 02:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523610583; cv=none; d=google.com; s=arc-20160816; b=LLjT4B7u/sm9eFiY/aXgXrqpa5n0YrPpx16ryjVF0pMhHFbfhl6qEhdUCkgY5e99Mn stJZtfsf9yvXRRCOm8YKVeEbaZSIcayMDsfwDphNdCUHkic9fd8AYGhNw5JBejY+92NG 8F6cA1ZlDt/ZDCjBVQypgVVNWBqXKZ5laMh4Nr2O6+KI9utUCN0UFbAhRADbKdu5WxFQ SohNXNYphjPWvSSgDFDPi64AMMCkvMLihwaHhJRwbfDmUSMILzOVFMPtKpVmJahwZBs2 Ax7VKN7AoiLFgGVfI+OjI7jQPFZlhvFK+HAfzbpfLV8IqFiQzk8a3ynGWrhUUIfuLLsc ODhA== 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=MbDQicGTMzrxJTiaYteEXqBKEUeBHdUo0iBOY7q6hYs=; b=Ez6OmrohECsQWWlqDf4ZFRaqDa2/s1edWiXB4auleDCOUw4MC2jV1KQATRzOxXxwCO TXKogAOu57QV+PW0GV+ICXCxmptR3sfzTSGIwLwz8f52IfociWnajEFn3i4rbrN6xBdv Eyk75KfImhVSH53XTx+7WxZIQ+hZqOCgU/SDa3KyBebwhwmvxIpl1bZVvBisttGFKDAV 6d2KB3F/QiM0JUNEpqkFMGztqzyhzzh/XjBc1QsKczpNVxQbOsNWhRdlfQtNzBfFaLWb Foy4gBYbcjHUO0d79jRNEHDZMMqD7oPFjGQpDHbD8lDK7npKU7rmTBu2noU88lm27Iaa y9Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NqyXDGu0; 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 q6si3614868pgt.130.2018.04.13.02.09.29; Fri, 13 Apr 2018 02:09:43 -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=NqyXDGu0; 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 S1754156AbeDMJIZ (ORCPT + 99 others); Fri, 13 Apr 2018 05:08:25 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:27171 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446AbeDMJIX (ORCPT ); Fri, 13 Apr 2018 05:08:23 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180413090821epoutp0487f54fdc6dffbed736b554cab3b3df40~k8620FEF_3092030920epoutp041; Fri, 13 Apr 2018 09:08:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180413090821epoutp0487f54fdc6dffbed736b554cab3b3df40~k8620FEF_3092030920epoutp041 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1523610501; bh=MbDQicGTMzrxJTiaYteEXqBKEUeBHdUo0iBOY7q6hYs=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=NqyXDGu0nlsn5GHUI75EuM/9IKgoKIbz9dYqyxcKYFErPbB15mGwoVdWixuoEjUxP SyraYFqcT3adDK0qBAhRTHuqYNFUaMKx0fFvkSYkoRmLcQj/xaQTE8R6asgvO3klzU 9wr/WDtkmYGkhDsxVzBvhYO8NMPPEKoJG6foL6DE= Received: from epsmges1p1.samsung.com (unknown [182.195.42.53]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180413090820epcas1p1834b1e8dcae80ab09ed53082f4cd123c~k861_rDp51907219072epcas1p1T; Fri, 13 Apr 2018 09:08:20 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id B7.69.04078.48370DA5; Fri, 13 Apr 2018 18:08:20 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180413090820epcas1p17dd97e3815909e0714f9d5a80eb82be9~k861uHF-a2213822138epcas1p1H; Fri, 13 Apr 2018 09:08:20 +0000 (GMT) X-AuditID: b6c32a35-139ff70000000fee-f5-5ad073843ff9 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 5D.C7.03849.38370DA5; Fri, 13 Apr 2018 18:08:20 +0900 (KST) Received: from amdc3058.localnet ([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 <0P7400LWW9DU2W20@mmp2.samsung.com>; Fri, 13 Apr 2018 18:08:19 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Daniel Lezcano Cc: Zhang Rui , Eduardo Valentin , Linus Torvalds , LKML , Linux PM list , "Li, Philip" Subject: Re: [GIT PULL] Thermal management updates for v4.17-rc1 Date: Fri, 13 Apr 2018 11:08:18 +0200 Message-id: <3546651.LUmDXQgY88@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <5afdb571-8aaa-941f-ff4f-7c4b031b5efb@linaro.org> MIME-version: 1.0 Content-transfer-encoding: quoted-printable Content-type: text/plain; charset="utf-8" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFIsWRmVeSWpSXmKPExsWy7bCmnm5L8YUog8WXxS3mfZa1mH/lGqvF 5V1z2Cw+9x5htLh06CKTxZOHfWwWj/resjuwe+ycdZfdY/Gel0wed67tYfM4MeM3i8fnTXIB rFFcNimpOZllqUX6dglcGTdeP2Qr+CZSseiCWwPjMoEuRk4OCQETiSkdSxi7GLk4hAR2MErs vfiFHcL5zihx6vgqdpiq+dfXMUMkNjBK3DozgxXC+coo0dq3mg2kik3ASmJi+ypGEFtEQE+i 8X0bE4jNLPCFUeLhTX4QW1jAQaJhwzUWEJtFQFXiffsUZhCbV0BTovficbBtogJeElv2tYP1 cgrYSbRsPcMCUSMo8WPyPRaImdoST95dYIWwNSVefJnEAnKQhMABNollv/YwQpztIvFpzkQm CFtY4tXxLUALOIBsaYlLR20h6psZJb7t2MMMUTOBUWLPeiEI21ri8PGLUAv4JN597WGF6OWV 6GiDKvGQmHj4MNR4R4lnkx6yQQLlBqPEoUvbmCYwys5CcvcsJHfPQnL3AkbmVYxiqQXFuemp xYYFhnrFibnFpXnpesn5uZsYwSlCy3QH45RzPocYBTgYlXh4FSrPRwmxJpYVV+YeYpTgYFYS 4b1ZcCFKiDclsbIqtSg/vqg0J7X4EKM0B4uSOO9TnzNRQgLpiSWp2ampBalFMFkmDk6pBsZ6 rwmHV805lTC5ddqUTUJq1b/3TPXRSOjdG1u6PO1t/4dXsoVJ0pkb6yw/vdhxoirWV884YrXf wU2CH/4lRk/bOnfyo79bog9POLzx9CN9A/+DtTMSHbIfnr1/7mtieoqOQGuHyL/2hMuPF2Vt n/PIMkn4u4jA138bfzK+7S8/n1Rg9cc2dr+JEktxRqKhFnNRcSIAjLuYLQ0DAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsVy+t9jQd2W4gtRBvsPsVnM+yxrMf/KNVaL y7vmsFl87j3CaHHp0EUmiycP+9gsHvW9ZXdg99g56y67x+I9L5k87lzbw+ZxYsZvFo/Pm+QC WKO4bFJSczLLUov07RK4Mm68fshW8E2kYtEFtwbGZQJdjJwcEgImEvOvr2PuYuTiEBJYxyix eX8/C4TzlVHi8s7LbCBVbAJWEhPbVzGC2CICehKN79uYQIqYBb4wSiw+sIcVJCEs4CDRsOEa C4jNIqAq8b59CjOIzSugKdF78Tg7iC0q4CWxZV87E4jNKWAn0bL1DNS2JkaJbct2QjUISvyY fA9sELOAtsSTdxeAFnAA2eoSU6bkTmDkn4WkahaSqlkIVQsYmVcxSqYWFOem5xYbFRjmpZbr FSfmFpfmpesl5+duYgSG9LbDWn07GO8viT/EKMDBqMTDq1B5PkqINbGsuDL3EKMEB7OSCO/N ggtRQrwpiZVVqUX58UWlOanFhxilOViUxHlv5x2LFBJITyxJzU5NLUgtgskycXBKNTAyT+bz //Qhq9WpXyJEMumT4AQNzyb7jbvqTsxObj0wf9r03qe1EasFbE/rTV6/7uS0OhWz3XUpj150 GUzuktQ/NVnuT3c8d6JyvGzckUfF4pevVAQ99f5tbXnr+HydRz5rgpYKv20+/LGN4ZthoULf voXn5qyx+/Hw91y/NlnB5oeHMrUNDiUpsRRnJBpqMRcVJwIAurBv8mUCAAA= X-CMS-MailID: 20180413090820epcas1p17dd97e3815909e0714f9d5a80eb82be9 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180413090820epcas1p17dd97e3815909e0714f9d5a80eb82be9 X-RootMTR: 20180413090820epcas1p17dd97e3815909e0714f9d5a80eb82be9 References: <1523436077.16235.5.camel@intel.com> <2944702.qKZ0LXufY7@amdc3058> <5afdb571-8aaa-941f-ff4f-7c4b031b5efb@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, April 13, 2018 11:00:43 AM Daniel Lezcano wrote: > On 13/04/2018 10:55, Bartlomiej Zolnierkiewicz wrote: > > On Friday, April 13, 2018 01:39:05 PM Zhang Rui wrote: > >> Hi, Eduardo, > >> > >> On =E5=9B=9B, 2018-04-12 at 21:08 -0700, Eduardo Valentin wrote: > >>> Hello, > >>> > >>> On Thu, Apr 12, 2018 at 09:55:19AM -0700, Linus Torvalds wrote: > >>>> > >>>> On Wed, Apr 11, 2018 at 10:08 PM, Zhang Rui > >>>> wrote: > >>>>> > >>>>> > >>>>> could you please illustrate me what the kconfig & warning is? > >>>> Just "make allmodconfig" and the warning is about a uninitialize= d > >>>> variable. > >>>> > >>>> Line 304 in drivers/thermal/samsung/exynos_tmu.c if my shell > >>>> history > >>>> is to be believed. > >>>> > >>>> Linus > >>> Yeah, this has also passed my local compilation error. Somehow my= > >>> gcc4.9 > >>> is not catching it. Using an older gcc (gcc4.6) does catch it. > >>> > >>> Anyways, given that the conversion functions are written to cover= > >>> for unexpected cal_type, the right way of fixing this is to rewri= te > >>> the conversion functions to allow for returning error codes and > >>> adjusting the callers as expected. > >>> > >>> Rui, bzolnier, please consider the following fix: > >>> > >> as it is late in this merge window, I'd prefer to > >> 1. drop all the thermal-soc material in the first pull request whi= ch I > >> will send out soon. > >> 2. you can prepare another pull request containing the thermal-soc= > >> materials except the exynos fixes > >> 3. exynos fixes with the problem solved can be queued for -rc2 or > >> later. > >=20 > > Could you please just merge the obvious fix from Arnd instead? > >=20 > > [ it was posted two weeks ago and ACKed by me ] > >=20 > > https://patchwork.kernel.org/patch/10313313/ >=20 > I'm not sure these are correct fixes. >=20 > The change 480b5bfc16e1 tells: >=20 > "There should be no functional changes caused by this patch." >=20 > but the fix above returns 0 as a default value instead of '50' or '25= ' > for the 5440 and that impacts the threshold etc ... >=20 > IMO, the correct fix would be to define a default value '50', overrid= e > it at init time to '25' if it is a 5440. And then the variable 'temp'= > and 'temp_code' get this value in the default case. It is okay to return 0 because this code-path (the default one) will be= never hit by the driver (probe makes sure of it) - the default case is here is just to silence compilation errors.. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics