Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1361793
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup |
| Date | 2016-03-21 13:50 +0100 |
| Message-ID | <rf7rs-5J5-3@gated-at.bofh.it> (permalink) |
| References | <reY4O-7DG-5@gated-at.bofh.it> <rf62m-4MK-19@gated-at.bofh.it> <rf6Yp-5tY-1@gated-at.bofh.it> <rf7hN-5EJ-45@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello Mark, On 03/21/2016 09:37 AM, Mark Brown wrote: > On Mon, Mar 21, 2016 at 09:13:55AM -0300, Javier Martinez Canillas wrote: >> On 03/21/2016 08:11 AM, Mark Brown wrote: >>> On Sun, Mar 20, 2016 at 11:39:46PM -0300, Javier Martinez Canillas wrote: > >>>> This patch makes the unresolved parent supplies to be looked up before the >>>> regulators late cleanup, so those with a child marked as always on will be >>>> enabled regardless if a driver attempted to get the child regulator or not. > >>> This doesn't make much sense to me as a fix - it feels like we're doing >>> a fragile hack. Surely it's better to do this as we register the >>> devices, that way we're also protected against any similar issues with > >> Sorry, not sure if I understood correctly. You mean to do it when the >> drivers register the regulators, so at regulator_register() ? > >> That's basically what was done before Bjorn's patch but that doesn't >> handle the case of out of order registration when having circular >> dependencies between regulators. > > We used to look for the parent at registration time, we didn't look for > the children. What you're trying to do here is look for the children; > we can do that at registration time. > Oh, now I understand what you meant. I thought you said to lookup the parents at registration time, not the childrens. Great, I'll take a look and give a try to your suggestion. Thanks a lot for your help. Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup Javier Martinez Canillas <javier@osg.samsung.com> - 2016-03-21 03:50 +0100
Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup Mark Brown <broonie@kernel.org> - 2016-03-21 12:20 +0100
Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup Javier Martinez Canillas <javier@osg.samsung.com> - 2016-03-21 13:20 +0100
Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup Javier Martinez Canillas <javier@osg.samsung.com> - 2016-03-21 13:30 +0100
Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup Mark Brown <broonie@kernel.org> - 2016-03-21 13:40 +0100
Re: [PATCH] regulator: Lookup unresolved parent supplies before regulators cleanup Javier Martinez Canillas <javier@osg.samsung.com> - 2016-03-21 13:50 +0100
csiph-web