From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753127AbaBXRRq (ORCPT ); Mon, 24 Feb 2014 12:17:46 -0500 Received: from avon.wwwdotorg.org ([70.85.31.133]:34952 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753040AbaBXRRo (ORCPT ); Mon, 24 Feb 2014 12:17:44 -0500 Message-ID: <530B7EAF.9060502@wwwdotorg.org> Date: Mon, 24 Feb 2014 10:17:35 -0700 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Viresh Kumar CC: "Rafael J. Wysocki" , Lists linaro-kernel , "cpufreq@vger.kernel.org" , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List , Nishanth Menon , Kgene Kim , "jinchoi@broadcom.com" , Lan Tianyu , Sebastian Capella , Jonghwan Choi Subject: Re: [PATCH V5 0/7] cpufreq: suspend early/resume late: dpm_{suspend|resume}() References: <52FE71BD.3020103@wwwdotorg.org> <2869027.iYHxWOSS2C@vostro.rjw.lan> <52FEAECA.5080905@wwwdotorg.org> <5303C018.1020707@wwwdotorg.org> <5304E93C.9000104@wwwdotorg.org> <90EA67AE-7F57-4F43-8967-642903AD72AC@linaro.org> <53063E01.5030808@wwwdotorg.org> In-Reply-To: X-Enigmail-Version: 1.5.2 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 02/23/2014 11:43 PM, Viresh Kumar wrote: > On 20 February 2014 23:10, Stephen Warren wrote: >> Well, except that still leaves a bunch of errors in the kernel log, and >> I have to remember to ignore them:-/ > > Just for few releases, before this patchset goes in. > >> It'd be nice if the cpufreq core didn't keep changing its behaviour and >> adding new error prints. It really should be up to the cpufreq drivers >> to log the errors if they experience any. > > Hmm... not sure.. Its better to do error prints at a single place, i.e. cpufreq > core on behalf of all drivers. If there is a error being returned from some > routine, we better print a message for that. Rather than living in the illusion > that everything is fine :) As a general rule, I think it's better to report the error right where it happened. That's the only place where the code knows exactly what the error was. Further up the call stack, we have to guess why there was an error from the return code, which isn't very much information.