lkml.org 
[lkml]   [2017]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] regulator: core: Don't use regulators as supplies until the parent is bound
On Tue, Jan 10, 2017 at 11:01:09AM +0000, Jon Hunter wrote:

> +++ b/drivers/regulator/core.c
> @@ -1553,6 +1553,11 @@ static int regulator_resolve_supply(struct regulator_dev *rdev)
> }
> }
>
> + if (r->dev.parent && !device_is_bound(r->dev.parent)) {
> + put_device(&r->dev);
> + return -EPROBE_DEFER;
> + }
> +

I realised earlier that this will trigger when the supply and the
consumer are part of the same PMIC which will cause issues as that's a
fairly common setup and won't be resolved by deferring. Can you please
modify this to only defer if the parent is not the same as the parent of
the regulator we're currently resolving? Sorry, should've thought of
this yesterday.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-01-10 17:57    [W:0.096 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site