Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6027353imu; Mon, 21 Jan 2019 01:47:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ykD2eX+iJCa2rWt+4UEHJ2Lo3bCdyHVNfGcUZCY8EAYA/AlT/cmd78v1lV4Q6HKLZu3Xs X-Received: by 2002:a63:680a:: with SMTP id d10mr27696369pgc.396.1548064026022; Mon, 21 Jan 2019 01:47:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548064025; cv=none; d=google.com; s=arc-20160816; b=NbdLpvvhok5URNxgch2tW3H7YKNu2nsjxVb/8QhijoY4RmGOIa8mkzqc9x4U2nWEM4 M0vrIqzpYEDovKKCM1njGYfQ1G23sf5yEmFG/jb+GOGv6vAtJf0ZFpVMvc9WkB77b6lC Yu3LnyVA0J1Yox4jBQ0DwhtA8RW06zcrjL4RK4ERnipFmohSCJTXN07Roz0P5z52cQXM pMtWIGr1nE/SFIPkWRL9F87Vg3x6Ut+agVXXwg9kTsFl2R5mbu1mBafL//3vOyTKcnfu TOc+6MurKRnbNso9rb1L9kAZk4Xc/0UJyEuvuuYNBKsB0lQ7RLXIMi2s/5rvCEDhjICp 6lxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Civ2EZOz8Odxk1Vw4YH1JP5x5ipWUzMNpI7y9HaNTHI=; b=AHiHaXKMXCHqQS1EgmoiqWnd2IVnmJwh1eoYTLUsW5RR+YjOSegVekofPHVKAFBrg4 NUppO/yaKDYhfBuhRtaArDf1uHLRZwjwhshyhZC6itRD2TBXSktbys8X9/FPt7QZJ0oR INiVqhbTPodtU9+XRGPRv7tdG2PFKJayQP+ZxbPTKPcDjRB+vck+0Xe9vtEARNQ9hHhw 2kRVPUjULD5MJlUD6FVxGBSMNicjoe/8J3cl++3Ad0pFtMEJio4B6uzS6rc0L7c9fbTi V4E/2klYoLhFqoGJdVo7cb0gLeGAINFu3I+qlcDT7kQzTUtOQBIeO0X4Go0Rrfyl2a44 sizA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VVrr2m3Z; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si12074480pgf.453.2019.01.21.01.46.50; Mon, 21 Jan 2019 01:47:05 -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=@linaro.org header.s=google header.b=VVrr2m3Z; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728440AbfAUJoI (ORCPT + 99 others); Mon, 21 Jan 2019 04:44:08 -0500 Received: from mail-vk1-f195.google.com ([209.85.221.195]:41533 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbfAUJoF (ORCPT ); Mon, 21 Jan 2019 04:44:05 -0500 Received: by mail-vk1-f195.google.com with SMTP id t127so4442654vke.8 for ; Mon, 21 Jan 2019 01:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Civ2EZOz8Odxk1Vw4YH1JP5x5ipWUzMNpI7y9HaNTHI=; b=VVrr2m3ZMWlt7xRjXdd7JtQjlKY/beb0E/kGCn3tPo30JaH5ghAkVoOEf69qjNO73k LLUmO43cundSJdX9rz5kXX8/DR3Yy7EEWf/Jp3nwj+az4x1S+U02tVoQiF37YPGBAQOU HmDW00SLewGg/FtUnKpad1X5CrqYPtCMVYcng= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Civ2EZOz8Odxk1Vw4YH1JP5x5ipWUzMNpI7y9HaNTHI=; b=mRRmdqHIot76wpiZ+fgz9YV4+K2merpuovmi3soCjnwCMNQPpJcAQmaTyrjBitOnur uo/1SMi0myx2/BMHKSf1yOruPDd4OV3yjuKtpPYjGsLd/Rc0pl/N7H0zVHD4qs2RFrCx dzjbmkfXCdoX50SXsyAhdXPLfycch+lQufsQPljUdMK9SXnnI09eRWOqFEZlCstuVRLj VTiap2HwuLyCGTwRb1t9zPli0xCNqF2usVKMQ4HWTrotWy1JKWSd/dKsdP9ITUQg82sK I0p7yIih6wZ5ZvQFK37GyQXDzPuh/AmXnV1J89sHeVz4zdMi7e5Z+zkNMtYsh1330Z6p QCkw== X-Gm-Message-State: AJcUukeMjbqXdAbbi+JzCJ9U0k+dmAmFP5+YckEdO0CBw4HIjdIJbizs 8OXnjrz1Hq1b6Z7bVNuI5IqjWWXFIgh3EzZfV44N3A== X-Received: by 2002:a1f:a8c5:: with SMTP id r188mr11826355vke.44.1548063843992; Mon, 21 Jan 2019 01:44:03 -0800 (PST) MIME-Version: 1.0 References: <2de2d178380525191d99d6c3619ad8c45efdbab4.1547458732.git.amit.kucheria@linaro.org> <20190117055730.7hxe37ngcubo6htw@vireshk-i7> In-Reply-To: From: Amit Kucheria Date: Mon, 21 Jan 2019 15:13:52 +0530 Message-ID: Subject: Re: [PATCH v2 9/9] thermal: cpu_cooling: Clarify error message To: "Rafael J. Wysocki" Cc: Viresh Kumar , Linux Kernel Mailing List , linux-arm-msm , Bjorn Andersson , Eduardo Valentin , Andy Gross , Taniya Das , Stephen Boyd , Doug Anderson , Matthias Kaehlcke , Javi Merino , Zhang Rui , Daniel Lezcano , "open list:THERMAL/CPU_COOLING" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 17, 2019 at 4:04 PM Rafael J. Wysocki wrote: > > On Thu, Jan 17, 2019 at 6:57 AM Viresh Kumar wrote: > > > > On 14-01-19, 15:51, Amit Kucheria wrote: > > > Make it clear that it is a failure if the cpufreq driver was unable to > > > register as a cooling device. Makes it easier to find in logs and > > > grepping for words like fail, err, warn. > > > > > > Signed-off-by: Amit Kucheria > > > --- > > > drivers/thermal/cpu_cooling.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c > > > index dfd23245f778..6fff16113628 100644 > > > --- a/drivers/thermal/cpu_cooling.c > > > +++ b/drivers/thermal/cpu_cooling.c > > > @@ -774,7 +774,7 @@ of_cpufreq_cooling_register(struct cpufreq_policy *policy) > > > > > > cdev = __cpufreq_cooling_register(np, policy, capacitance); > > > if (IS_ERR(cdev)) { > > > - pr_err("cpu_cooling: cpu%d is not running as cooling device: %ld\n", > > > + pr_err("cpu_cooling: cpu%d failed to register as cooling device: %ld\n", > > > policy->cpu, PTR_ERR(cdev)); > > > cdev = NULL; > > > } > > > > Always keep such cleanup patches at the top, so the maintainers can > > pick them up easily even if the entire series doesn't get in. > > Actually, if nothing in the series depends on this change and this > change doesn't depend on anything in the series, why is it part of the > series at all? Indeed, I should've separated this from the series. Done now.