Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755694AbaGIOoP (ORCPT ); Wed, 9 Jul 2014 10:44:15 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:52294 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750889AbaGIOoO (ORCPT ); Wed, 9 Jul 2014 10:44:14 -0400 Message-ID: <53BD5523.2080404@ti.com> Date: Wed, 9 Jul 2014 10:43:47 -0400 From: Santosh Shilimkar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Viresh Kumar , Stephen Boyd CC: Nishanth Menon , "linux-pm@vger.kernel.org" , , Tomasz Figa , "Rafael J. Wysocki" , Linux Kernel Mailing List , Lists linaro-kernel , Thomas P Abraham , Arvind Chauhan , Sachin Kamat Subject: Re: [PATCH 06/14] cpufreq: cpu0: defer probe if clock isn't registered yet References: <20140702055330.GA3454@dragon> <53B4A607.7030001@codeaurora.org> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 02 July 2014 10:19 PM, Viresh Kumar wrote: > On 3 July 2014 06:08, Stephen Boyd wrote: >> Please make this a dev_dbg() or just remove it entirely. Sending a >> message to the log on probe defer just duplicates what the driver core >> is already doing. > > Updated as: > > Author: Viresh Kumar > Date: Thu Jun 26 10:40:21 2014 +0530 > > cpufreq: cpu0: print relevant error when we defer probe > > Currently, we defer probe if regulator_get() returned -EPROBE_DEFER, i.e. > regulator isn't registered yet. We do a dev_err() in this case. Sending a > message to the log on probe defer just duplicates what the driver core is > already doing. Convert it to dev_dbg() instead. > > We should defer in case of clk_get() as well. > > Current code already does it, but it wasn't intentional probably. > Its just that > we are returning the right error with wrong print message. > > Fix print message to convey right error. > > Signed-off-by: Viresh Kumar > --- > drivers/cpufreq/cpufreq-cpu0.c | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > Looks good to me. Acked-by: Santosh Shilimkar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/