RE: [PATCH] regulator: anatop: Drop error message for -EPROBE_DEFER

From: Anson Huang
Date: Tue Mar 03 2020 - 08:23:25 EST


Hi, Mark

> Subject: Re: [PATCH] regulator: anatop: Drop error message for -
> EPROBE_DEFER
>
> On Tue, Mar 03, 2020 at 11:14:21AM +0800, Anson Huang wrote:
> > devm_regulator_register() could return -EPROBE_DEFER when trying to
> > get init data and NOT all resources are available at that time, for
> > this case, error message should NOT be present, the driver will call
> > probe again later, so drop error message for -EPROBE_DEFER.
>
> No, this is not good - it means that if there is some problem the user will not
> get any information about why the driver is not instantiating and how to fix it.
> At most lower the message to dev_dbg().

Make sense, will lower the message to debug level for -EPROBE_DEFER, it is just
because that user ever complained about the error message in normal level for
defer probe scenario, that is why I do this patch.

Thanks,
Anson