From patchwork Mon Jan 21 09:42:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10773463 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7421F1575 for ; Mon, 21 Jan 2019 09:43:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65CF9299A4 for ; Mon, 21 Jan 2019 09:43:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59D14299AA; Mon, 21 Jan 2019 09:43:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36C54299A4 for ; Mon, 21 Jan 2019 09:43:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727722AbfAUJnE (ORCPT ); Mon, 21 Jan 2019 04:43:04 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46767 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727140AbfAUJnE (ORCPT ); Mon, 21 Jan 2019 04:43:04 -0500 Received: by mail-wr1-f66.google.com with SMTP id l9so22402986wrt.13 for ; Mon, 21 Jan 2019 01:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ck6DLVRueLESAEqb4AoHP+TEzN+C6zqqxI0IKduFKsg=; b=fgAsy/X1T8FkFz6QZlONhE+x+uB651Hhgt5TQ62+Cwu9FLLUQKQRK23xxkJnhKtba/ sUpW5kRl054HPY1UgDlN0sN9WNoDilzFzG+Yzg+FMIuQ2xwxlEe33FNrwH1te+Fp7Zof CZMdN1thqAa40adQvQaPZEtMk2I2X5VRxkNK4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ck6DLVRueLESAEqb4AoHP+TEzN+C6zqqxI0IKduFKsg=; b=boiDfuU5NQYoCBZP9Dqe5tMojmQgvTce+HxCjHRLOgHzkXKYtJ/aRef9CME3cjumdT 0+7GOdSGt+ymE9H2tBzSccaNyF3N/XHVeNFszdbZX2S6/F0c4CsN9fe7qOySYOcpLdRW i/DlpvTbMlJFpd6kdyoVYL8j1h/T9HRQUQlw4I4PotarUp13KGn/tp5uAvtGWxub6tNS 011B0uUJYms6FwVG/7jWr2rTaHoOxAHNEN/eGZy2TPnBcaYfKXjbVe0NfFIwPli8V0SL bqz4V4jRS1b5pFaHFOyiqWEhAIwztYVhbase1qXILANf6almobRMiEClsi3gJEDhXuV4 VQfQ== X-Gm-Message-State: AJcUukeyOlYFcEGQuL16jL80UAbEgVgrruezWNKSzQ4yQAl4RQU23oP/ AOh+JeAlty8s2jRFX8BR5Rygzg== X-Google-Smtp-Source: ALg8bN4WbDWHoM2bd4PWUv69WHZtu7Hb2Hyg8e8odjqUllgsz0h4WwhodxaCHj5307WcwcDLWyetwA== X-Received: by 2002:a05:6000:11c3:: with SMTP id i3mr28676742wrx.221.1548063782484; Mon, 21 Jan 2019 01:43:02 -0800 (PST) Received: from localhost ([49.248.61.1]) by smtp.gmail.com with ESMTPSA id o5sm31176759wrw.46.2019.01.21.01.43.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 01:43:01 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, edubezval@gmail.com, swboyd@chromium.org, Zhang Rui , Daniel Lezcano , Viresh Kumar , linux-pm@vger.kernel.org Subject: [PATCH v1 1/2] thermal: of-thermal: Print name of device node with error Date: Mon, 21 Jan 2019 15:12:22 +0530 Message-Id: <04fc346fe98b9ada6a2bf8f18103fe2fe20240a4.1548063429.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make it easier to debug devicetree definition in case of errors. Signed-off-by: Amit Kucheria --- drivers/thermal/of-thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 4bfdb4a1e47d..2df059cc07e2 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -867,14 +867,14 @@ __init *thermal_of_build_thermal_zone(struct device_node *np) ret = of_property_read_u32(np, "polling-delay-passive", &prop); if (ret < 0) { - pr_err("missing polling-delay-passive property\n"); + pr_err("%pOFn: missing polling-delay-passive property\n", np); goto free_tz; } tz->passive_delay = prop; ret = of_property_read_u32(np, "polling-delay", &prop); if (ret < 0) { - pr_err("missing polling-delay property\n"); + pr_err("%pOFn: missing polling-delay property\n", np); goto free_tz; } tz->polling_delay = prop; From patchwork Mon Jan 21 09:42:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10773465 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 68E76746 for ; Mon, 21 Jan 2019 09:43:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 585D8299A0 for ; Mon, 21 Jan 2019 09:43:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C451299B7; Mon, 21 Jan 2019 09:43:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3587299A4 for ; Mon, 21 Jan 2019 09:43:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728368AbfAUJnb (ORCPT ); Mon, 21 Jan 2019 04:43:31 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41013 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726872AbfAUJna (ORCPT ); Mon, 21 Jan 2019 04:43:30 -0500 Received: by mail-wr1-f66.google.com with SMTP id x10so22432086wrs.8 for ; Mon, 21 Jan 2019 01:43:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=/iO1px23azz4XYlqPGK4I0M/7XGc7/WM1npHE+nRfKQ=; b=Q5qZut8Lgm+vBQ73S0qqM8ppV+bIgxmc+vcYzE971tIRrk72Vd3G/jhIEKcRSWs9rC tTPt7FjACaJfomCX3gvrmn4yZBbJtmJd4BswDHbvFuhyBdHL6gC3WX/bWQ6hYw44J5uo qgkDJb7tGyafICJ1phnejx+7AJPBr2E4EEr8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=/iO1px23azz4XYlqPGK4I0M/7XGc7/WM1npHE+nRfKQ=; b=UJVmIS0V4ga+MjSwOCjDSq/xjl8+MYMxv59R6JIvHaXB8a1k0EY9ynC/BjxG/ss5OY s+qaCAuN63WLpgmPzG1T3bncpC7Hyu7IcKhgqR3oB0sV9OUgSreF3t6TmpG9zKYpspkS 11KiWPAs8tLXaImkPPxZYeiATQlw4gRblrPFzERscn/cZtI2gZDQPymOx3qsPtksuJ0N 9aZfzSVDTxh/U616qPfxbJJjELZ8cDZAv3pi7Vii6a3DV0DFcoucinqFeLxYUmUrROp7 mWfxj2cQUBS2IMHMcgeyCY7P/ln47wNVJXWL6GJaFoZSR6uMFUY9jcxsGfrYGi2OtoZq BXQQ== X-Gm-Message-State: AJcUukeXd95F7MW3j/P6T2z2bm1bhE+uxlTzja0+xxZpR+m8OvpW+KL5 ZuXHME4SzGOPLq/Jap2EvcVHZMP8SGE= X-Google-Smtp-Source: ALg8bN5BbNpt9xTjrX7pXW7xYHtY4kSCbm9T5+Xrs4QGpvjZ2m7zBikHKoEz7wl4Gu23+CP7KV71NA== X-Received: by 2002:adf:ce86:: with SMTP id r6mr28491308wrn.257.1548063808552; Mon, 21 Jan 2019 01:43:28 -0800 (PST) Received: from localhost ([49.248.61.1]) by smtp.gmail.com with ESMTPSA id t76sm52767896wme.33.2019.01.21.01.43.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 01:43:27 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, edubezval@gmail.com, swboyd@chromium.org, Amit Daniel Kachhap , Viresh Kumar , Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org Subject: [PATCH v1 2/2] thermal: cpu_cooling: Clarify error message Date: Mon, 21 Jan 2019 15:12:23 +0530 Message-Id: <3812a31a821981eb36858852d2f66c018c8fa0d4.1548063429.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Viresh Kumar --- 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; }