Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2684882imu; Thu, 29 Nov 2018 08:41:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xvk4FPPgl3O+QghnvF281G/CR+Cw4XlMInAj2dMVexa7GcK5yuJJESdCStDQ4fMwZ8Ahhz X-Received: by 2002:a65:6215:: with SMTP id d21mr1796334pgv.289.1543509697032; Thu, 29 Nov 2018 08:41:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543509697; cv=none; d=google.com; s=arc-20160816; b=IpnB81LxEs0Z2Yp1LaYyNm2OhDAefQqOjrdzT31fsmASnh9FlmmcUrY/zBQ1dH8DL9 CSiXIz/4kGh9i/PB4wvQMADZ0DYX9TmkmJiPK3ElICJ+o4ou2l7MboPdqRmaoqHAIKvt Rru3RiriYR6/7gJhBJAtLeuSblNSSmBeuDemWpp+DizzZFQ6euNfGP+q19jzwfRIDNch NDQq0v0DsYSzGQ6paIOijAaZDXcpUoCcQfkYQHkeQF5QbLAtibNo6Rc4+eUklazdA+MU /P3VJlu5FlrGNdInJV8OQLME9mSTC4zWNONay6EHfU8xhrWPp+aVAkr2JjTDgZHudMD+ gN1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wvuj5phS+65e2e0XJ3PsiwSsJXk2zry6FxKDNmUOpkw=; b=E0OH0NYug50rDigZD4KIQG1ZpI65DmjicpR2e9MYuN5ihn/gdKVv34Ft7txnJO0QKF lmF5bnZjrI5DDt2NvrDuR0ep2WU7AofEyEqXMPKxS6LtwXGAEolB+DihuNN1zerVmxvM 2u54KqsezN4lDlhrzcWZpXtrKHYDTv9uqdNM9SmKEaew3YJGuyDXMTb1Ft09m7n3vgQA 2tpMBbm2laCUygwuADyjEqTxasb92NqxfDlVn+ymknWZJbwxAro1P1ZoyHwCCM2Wwdke vUNoLlIvZxMRDc/PYKyZN3lzH7CY1/soMzCIzJwgLyJhX32HzfzUR9nDykhdkcIU7Dun rf9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fbWJtWxD; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc3-v6si2570197plb.52.2018.11.29.08.41.04; Thu, 29 Nov 2018 08:41:36 -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=@gmail.com header.s=20161025 header.b=fbWJtWxD; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729487AbeK3Dpk (ORCPT + 99 others); Thu, 29 Nov 2018 22:45:40 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34928 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729218AbeK3Dpk (ORCPT ); Thu, 29 Nov 2018 22:45:40 -0500 Received: by mail-pg1-f196.google.com with SMTP id s198so1179903pgs.2; Thu, 29 Nov 2018 08:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wvuj5phS+65e2e0XJ3PsiwSsJXk2zry6FxKDNmUOpkw=; b=fbWJtWxDu/bHFvP62TYrG2/FMK+RJ7LXuHeOAaPc1JzTH0FhfvR2/AjYLXL98voFDZ OMrEjythFo3F6lI7vkC79darUlFhvlgftAx+zWZYz+MLLgTViM4TxzBEF2WvAhUDT+Kr IuiYxab032rvUV96FSogMGquPpPxc0zghxCUEslF/rSmZweHy/YktN6CyHtKqWoBh0sH rBBgURz630IlZHr/nsCcV5ZczfY/L+9z5w5LTw7VZzZlX8FbHPOZB8ssI5/R71tnvJAD HmmA38N+hPhsxOSvuPVN7j+XqoBDgjLaCyEEbj0hAry2eIeuQZNGY/VpjZ8wFz/0d3QQ rIIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wvuj5phS+65e2e0XJ3PsiwSsJXk2zry6FxKDNmUOpkw=; b=bIoVRnwhVJC9z20zYoD+NRWsLlrKuqu5h7xGhCn7Rh1o00fHZufxj7xs45oAc+YbRG TZn6S5xObcDUyGqIR90XyGj6nd1iDg2CbdqImjqVGdt1zmZsWTYiat1O+LYg5G34DOeB iluUya40tORfYT6yLMgD1wMfPCW+komxoG+gjF6KBr78H+FrJrcRHFVJ+lrcvqp5N34j ThWxlJ9XOCQHQv9x4Wkxgf5bMLcyWsHSjq0saVzLvf6JKKxCCNzdG/kEyK835VW8IrCN Nl0gbDUDJo/B06M+cTQme1mh811GI0ebM5DF3E8ORfq94lp7VKGbUQ/D6OMHeZkY9PFH BDDA== X-Gm-Message-State: AA+aEWbsqmqB2sJLqNFihamxbSU/KWCadtuPqU3vs/Uy7uY1NGEPlQHn NO9qAhAYri/VEwrXq1XCkNY2EHDV X-Received: by 2002:a63:e655:: with SMTP id p21mr1807455pgj.70.1543509582413; Thu, 29 Nov 2018 08:39:42 -0800 (PST) Received: from localhost.localdomain ([2601:644:8201:32e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id o8sm9932411pfa.42.2018.11.29.08.39.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 08:39:41 -0800 (PST) Date: Thu, 29 Nov 2018 08:39:39 -0800 From: Eduardo Valentin To: Wei Ni Cc: thierry.reding@gmail.com, daniel.lezcano@linaro.org, linux-tegra@vger.kernel.org, rui.zhang@intel.com, srikars@nvidia.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/3] thermal: tegra: remove unnecessary warnings Message-ID: <20181129163938.GA2045@localhost.localdomain> References: <1543486183-2868-1-git-send-email-wni@nvidia.com> <1543486183-2868-2-git-send-email-wni@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1543486183-2868-2-git-send-email-wni@nvidia.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, On Thu, Nov 29, 2018 at 06:09:41PM +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(-) > > diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c > index ed28110a3535..55cc1f2f6a45 100644 > --- a/drivers/thermal/tegra/soctherm.c > +++ b/drivers/thermal/tegra/soctherm.c > @@ -550,7 +550,7 @@ static int tegra_soctherm_set_hwtrips(struct device *dev, > > ret = tz->ops->get_crit_temp(tz, &temperature); > if (ret) { > - dev_warn(dev, "thermtrip: %s: missing critical temperature\n", > + dev_info(dev, "thermtrip: %s: missing critical temperature\n", I am mostly ok with your change in direction. But are you sure this is a good thing? What about in the case that you have a platform that have the crit temp and you really failed to .get_crit_temp()? > sg->name); > goto set_throttle; > } > @@ -569,7 +569,7 @@ static int tegra_soctherm_set_hwtrips(struct device *dev, > set_throttle: > ret = get_hot_temp(tz, &trip, &temperature); > if (ret) { > - dev_warn(dev, "throttrip: %s: missing hot temperature\n", > + dev_info(dev, "throttrip: %s: missing hot temperature\n", > sg->name); > return 0; > } > @@ -600,7 +600,7 @@ static int tegra_soctherm_set_hwtrips(struct device *dev, > } > > if (i == THROTTLE_SIZE) > - dev_warn(dev, "throttrip: %s: missing throttle cdev\n", > + dev_info(dev, "throttrip: %s: missing throttle cdev\n", > sg->name); > > return 0; > -- > 2.7.4 >