Re: [PATCH] regulator: Don't print error in devm_regulator_bulk_get() on -EPROBE_DEFER

From: Javier Martinez Canillas
Date: Wed Mar 16 2016 - 07:40:54 EST


Hello Mark,

On 03/16/2016 08:37 AM, Mark Brown wrote:
> On Wed, Mar 16, 2016 at 08:19:42AM -0300, Javier Martinez Canillas wrote:

[snip]

>
>> Basically I want to get rid of things like this:
>
>> [ 1.438422] exynos-hdmi 14530000.hdmi: Failed to get supply 'vdd': -517
>> [ 1.443638] [drm:hdmi_probe] *ERROR* failed to get regulators
>> [ 1.449326] [drm:hdmi_probe] *ERROR* hdmi_resources_init failed
>
>> The HDMI driver probed correctly but looking at the log it seems that things
>> failed so can mislead users not familiar with the probe deferral mechanism.
>
> So fix probe deferral. Don't go through the entire kernel hacking in
> bodges everywhere, if we have to hack the error handling for almost all
> resource acquisition errors during probe that's obviously not sensible.
>

Got it, thanks a lot for your explanations.

Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America