Re: [PATCH 3/3] regulator: core: make regulator_register() EPROBE_DEFER aware

2019-09-18 Thread Mark Brown
On Wed, Sep 18, 2019 at 08:53:40AM -0700, Dmitry Torokhov wrote: > On Wed, Sep 18, 2019 at 1:18 AM Marco Felsch wrote: > > Those errors are handled but the behaviour of this funciton is to return > > NULL in such errors which is fine for the caller of this function. I > > only want to handle EPRO

Re: [PATCH 3/3] regulator: core: make regulator_register() EPROBE_DEFER aware

2019-09-18 Thread Marco Felsch
On 19-09-18 08:53, Dmitry Torokhov wrote: > On Wed, Sep 18, 2019 at 1:18 AM Marco Felsch wrote: > > > > On 19-09-17 17:57, Dmitry Torokhov wrote: > > > On Tue, Sep 17, 2019 at 4:42 PM Marco Felsch > > > wrote: > > > > > > > > Sometimes it can happen that the regulator_of_get_init_data() can't >

Re: [PATCH 3/3] regulator: core: make regulator_register() EPROBE_DEFER aware

2019-09-18 Thread Dmitry Torokhov
On Wed, Sep 18, 2019 at 1:18 AM Marco Felsch wrote: > > On 19-09-17 17:57, Dmitry Torokhov wrote: > > On Tue, Sep 17, 2019 at 4:42 PM Marco Felsch > > wrote: > > > > > > Sometimes it can happen that the regulator_of_get_init_data() can't > > > retrieve the config due to a not probed device the r

Re: [PATCH 3/3] regulator: core: make regulator_register() EPROBE_DEFER aware

2019-09-18 Thread Marco Felsch
On 19-09-17 17:57, Dmitry Torokhov wrote: > On Tue, Sep 17, 2019 at 4:42 PM Marco Felsch wrote: > > > > Sometimes it can happen that the regulator_of_get_init_data() can't > > retrieve the config due to a not probed device the regulator depends on. > > Fix that by checking the return value of of_p

Re: [PATCH 3/3] regulator: core: make regulator_register() EPROBE_DEFER aware

2019-09-17 Thread Dmitry Torokhov
On Tue, Sep 17, 2019 at 4:42 PM Marco Felsch wrote: > > Sometimes it can happen that the regulator_of_get_init_data() can't > retrieve the config due to a not probed device the regulator depends on. > Fix that by checking the return value of of_parse_cb() and return > EPROBE_DEFER in such cases.

[PATCH 3/3] regulator: core: make regulator_register() EPROBE_DEFER aware

2019-09-17 Thread Marco Felsch
Sometimes it can happen that the regulator_of_get_init_data() can't retrieve the config due to a not probed device the regulator depends on. Fix that by checking the return value of of_parse_cb() and return EPROBE_DEFER in such cases. Signed-off-by: Marco Felsch --- drivers/regulator/core.c