Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1748874imu; Thu, 17 Jan 2019 02:36:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN6E4UfSx26lUmmu6rO2Kks6DY5/Kd01KidBmY4nDXWtYBgj7p0ZAy1/wzNP60AZ7U7AsW6p X-Received: by 2002:a63:3507:: with SMTP id c7mr12919376pga.315.1547721387579; Thu, 17 Jan 2019 02:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547721387; cv=none; d=google.com; s=arc-20160816; b=Kuy+oNssxtU+0iMQMqIlaTaocZv+dGpeEsRRpe4Cq5HiC0j7jg4uKOPmUZApP8/1+9 uikCf0ssjSqaX25m4JTLl8m3MvyGg+S3dT7mlty/oRc8uknTRhghK1vvVvJkuv2qxKbN C9gOtm0mN0oe/BgBR1va3MNTEKpVY2MZqwf0QCkJm5ofbRVWBltsac/lLR1WVQc1b1vb tavbqn6aVAywcjS5QH8HfnjQzHr2Zsp/kBg27JL1274sG6TLJjQpV+026xz95mqR9zV+ usWwAef3f16MCxCtA15+V/YN6LLV1DG4SzboaJL5xSbtZNNtno8z1W8+oiMQoQRgrbPJ oxXQ== 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; bh=L/X7I4hChurfKwIsKCyCVX6URaTM3HKeWIQA34lQpPM=; b=YCt7VaLKkAgle8KSxvMu8g2/4bD5qO9ncY71/tupG7OM1CxZHuIciQ2N/Q4Ul+lamH MFiL/oSlMUr1c/50YH6i/c7uXWDltipWa5F+UtscgcOWtmuUCI5BMt+hQhkKWtroLD59 i+4W+PLh5uocGXEy2jdpNScKN3sLjyo0TwnDm7j+UmZtu/sHu0mqawkeS3RvodjPNq8Q /Crxqwt4NlI+ydFdpPF+wD9W/O0eVSiGHlfCyClzaGCvgcW/QptCjPdKAlyes5RElcy7 JzvWTF+9blYS93Mhn5OwAaVrnPBPRjT/z+8O/oIhahUZdkcqDX3AKkk/fiaCWpAd4a2o QdPg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p186si1335122pgp.37.2019.01.17.02.36.11; Thu, 17 Jan 2019 02:36:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728447AbfAQKem (ORCPT + 99 others); Thu, 17 Jan 2019 05:34:42 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:44432 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727498AbfAQKel (ORCPT ); Thu, 17 Jan 2019 05:34:41 -0500 Received: by mail-oi1-f195.google.com with SMTP id m6so5729463oig.11; Thu, 17 Jan 2019 02:34:40 -0800 (PST) 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=L/X7I4hChurfKwIsKCyCVX6URaTM3HKeWIQA34lQpPM=; b=S6RSvCIS7NAcTsPZMyTJwvEa/2Md+OSFzZJVvsdZuJe4wUC0s3oFGGfiXC6IGvkBMx 1Y3WxdB0fuoyjmFRZpMZDtlZevZ+qLRd8BtEwEwd2HWu4L5efPkchb+iMmzRTAVR9ZWy 3z7fgBNdsuNlYPjkrGPQRm/GH6J418zMhrjC3VKSaKf7crgGK90crmpwiq/tFsLOmBwS oHDEk4dyNrcGsZgMhjDB/U1Wg/Ma/uMjcz+8cltLZvezu21Cs4EUaixUV2sw2nOq52Ml 1uHmgEliOlq4BHzKHQw3kk245mqBRYJrmsQjZZ+d4zwshUmk5KZKTQCs4C+wILGhTPIj XfZw== X-Gm-Message-State: AJcUukc8Z3J+8vgRBcIy/+NfyiQWEHXC8DHR2EsUmnqx9GMeCpddSrSn V4+j0g93LBR2oObXHWbwO5sh2OwNUh21UmaqQ38= X-Received: by 2002:aca:3d42:: with SMTP id k63mr7576108oia.95.1547721280038; Thu, 17 Jan 2019 02:34:40 -0800 (PST) MIME-Version: 1.0 References: <2de2d178380525191d99d6c3619ad8c45efdbab4.1547458732.git.amit.kucheria@linaro.org> <20190117055730.7hxe37ngcubo6htw@vireshk-i7> In-Reply-To: <20190117055730.7hxe37ngcubo6htw@vireshk-i7> From: "Rafael J. Wysocki" Date: Thu, 17 Jan 2019 11:34:28 +0100 Message-ID: Subject: Re: [PATCH v2 9/9] thermal: cpu_cooling: Clarify error message To: Viresh Kumar , Amit Kucheria Cc: Linux Kernel Mailing List , linux-arm-msm , bjorn.andersson@linaro.org, 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 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?