Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp428280imu; Thu, 8 Nov 2018 23:23:25 -0800 (PST) X-Google-Smtp-Source: AJdET5cJgmGBO3hohIaHWHU+I0fgQELp7MwnkHpG2NrHEw+ARC7HPTz7QZXOHCUBJrpPaj4zyQOF X-Received: by 2002:a62:4718:: with SMTP id u24-v6mr7853911pfa.107.1541748205333; Thu, 08 Nov 2018 23:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541748205; cv=none; d=google.com; s=arc-20160816; b=JViL2lZ9vLmTJlc+PTx77F7uxY4pS5ouDwi6Te3qJ9ACae93wB1NywO9FzUbptMnp+ q1fh/8boYhZkgZq93luHne8ke3miXxMP4GOHtS1AxZRBdTx4gH8l17Nx7SVTj3iaHkdI iuhdRiUGiF6mYqSmQx/PvPfhTm4FrqbV2kc07rsa5LNEazxt4Sn++FC1LBiRd6JbyOm9 TYpG5mChMzzQFSiaaq3v8z+J9N9pcWJwlslHHZypVO95XVIvmaUXtoLudpABczaAK3IU SfTebrJsNC4RTVfGXVI0gIvhyNM9g10kXAmnVfpx8qYI83jchQ3MKoGmeeWHuLQoLFug 1GFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Iiig5s98u9Xf5DK2oxUWZuYzaQeqcyDfdMuYIpLwGRE=; b=S23AdAxX+wwfa1COiQDCy9vTMvC/a1IcyrnC7ilhz5GI4XTcjj5u0abkVIUwSA7SsE wU+kS77Q5ZEBIbGEd8Er0u7+RDCSe9Mp303mjUHqxcMZcbRWVMJF+1BkHACBZwEzE8Jf 6/7isr2rRJJ9bpSBP1ct1v+j3wNofNDKtMzDR6TVoUWPHXycxpDhZvTBLQkfgjhhwmqL 6JYMzLK3GU5Bkn7LPLvpjja7YHM6Xyz+WneKchj+Zbzb7Mu4uxWYlArMIJX6jeouVkul okR/pw+Y+jOQJsSuMQp7BDm4fbMJ41R5W1xbP5kR/r1KpDq7zW7RQmH2t5KsEmXP55ca SVcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=I1GEomhl; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2-v6si7088862pfb.246.2018.11.08.23.23.09; Thu, 08 Nov 2018 23:23:25 -0800 (PST) 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=@nvidia.com header.s=n1 header.b=I1GEomhl; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728135AbeKIRAo (ORCPT + 99 others); Fri, 9 Nov 2018 12:00:44 -0500 Received: from hqemgate16.nvidia.com ([216.228.121.65]:13713 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727864AbeKIRAo (ORCPT ); Fri, 9 Nov 2018 12:00:44 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 08 Nov 2018 23:21:36 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 08 Nov 2018 23:21:27 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 08 Nov 2018 23:21:27 -0800 Received: from [10.19.225.182] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 9 Nov 2018 07:21:25 +0000 Subject: Re: [PATCH v1 2/4] thermal: tegra: remove unnecessary warnings To: Thierry Reding CC: , , , , References: <1541410354-19090-1-git-send-email-wni@nvidia.com> <1541410354-19090-3-git-send-email-wni@nvidia.com> <20181108124716.GE1340@ulmo> From: Wei Ni Message-ID: Date: Fri, 9 Nov 2018 15:21:23 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181108124716.GE1340@ulmo> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1541748096; bh=Iiig5s98u9Xf5DK2oxUWZuYzaQeqcyDfdMuYIpLwGRE=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=I1GEomhlflpkgx2iVepRiNGUVwB8ndqH7BKaMgucTatLht53le2pQWB2QyP6kh/Ef M6+2NGaC01UTyN7HUVxOzmcZoBHxIoXxA+lSCqIcSpPjWU9KZYZJV6vz1Sy7Rm2Dkt OOUQsdsyqLirXEGrM3HmUts54KVVtUeKuD6nHmxT8Dzuhx3HdsjaY4E848R1y2eLv5 wO+yB+27LWLKEEstC2K/aBaW8FPR4XREid/mwqNOeovXzyzxDvpYfWSqCSSd2uOBJO riJi/86v0A1E/lEbKYJJ2FegV4Azj18EbWWs8RQl/aH0LF8Q/sQkq3c/mrnc6f5a6K xO6YoGcrExb4g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/11/2018 8:47 PM, Thierry Reding wrote: > On Mon, Nov 05, 2018 at 05:32:32PM +0800, Wei Ni wrote: >> Convert warnings to info as not all platforms may >> have all the thresholds and sensors enabled. >> >> Signed-off-by: Wei Ni >> --- >> drivers/thermal/tegra/soctherm.c | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) > > This seems overly generalized to me. Shouldn't we be checking in a more > fine-grained way for the absence of thresholds and/or sensors? > > Otherwise, how are going to make the difference between the sensor not > being enabled or the device tree just missing the information? > The sensor being enabled or not is controlled by device tree, if the dts have the corresponding nodes, then the sensors should be enabled. And the thresholds for sensor are not necessary, so I think we just need to print out them. BTW, in my patch 1/4, I should print out the sensor name if the sensor not enabled and register failed. Will update it. > Thierry >