lkml.org 
[lkml]   [2016]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [rtc-linux] Re: [PATCH v3] rtc: s3c: Don't print an error on probe deferral
From
On Fri, Mar 18, 2016 at 9:07 PM, Alexandre Belloni
<alexandre.belloni@free-electrons.com> wrote:
> On 18/03/2016 at 08:57:57 -0300, Javier Martinez Canillas wrote :
>> >>> But yes, we can at least get rid of the else statement. I don't have a
>> >>> strong opinion about the debug information, I left it to avoid someone
>> >>> to tell me that I was removing a useful log.
>> >>
>> >> Although dev_dbg doesn't harm... but isn't driver core printing debug
>> >> message already?
>> >>
>> >
>> > I don't think it does or at least I didn't find it when looking
>> > at the devm_clk_get() call chain.
>> >
>> >> BR,
>> >> Krzysztof
>> >>
>>
>> Just to make sure that I understood correctly, there's no action I
>> should take in order for this patch to be picked right? IOW, the
>> current version is OK?
>>
>
> I was kind of waiting an answer on the question whether the core already
> prints a message when probe dereferral happens because in that case,
> there is no need for a debug message and we can indeed simplify the
> whole block.

Although I did not test it, I think the core will print generic defer
message. See really_probe() around line 400:
http://lxr.free-electrons.com/source/drivers/base/dd.c?v=4.4#L347

However the cause of deferring will not be printed... so I find some
use of debug message in driver... On the other hand, not many drivers
are doing this. Ehh, I guess I am just really picky. :)

BR,
Krzysztof

\
 
 \ /
  Last update: 2016-03-18 14:01    [W:0.137 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site