Re: [PATCH] regulator: Avoid grabbing regulator lock during suspend/resume

2020-08-18 Thread Mark Brown
On Tue, 4 Aug 2020 00:08:37 -0700, Stephen Boyd wrote: > I see it takes about 5us per regulator to grab the lock, check that this > regulator isn't going to do anything for suspend, and then release the > lock. When that is combined with PMICs that have dozens of regulators we > get into a state

Re: [PATCH] regulator: Avoid grabbing regulator lock during suspend/resume

2020-08-04 Thread Doug Anderson
Hi, On Tue, Aug 4, 2020 at 12:08 AM Stephen Boyd wrote: > > I see it takes about 5us per regulator to grab the lock, check that this > regulator isn't going to do anything for suspend, and then release the > lock. When that is combined with PMICs that have dozens of regulators we > get into a

[PATCH] regulator: Avoid grabbing regulator lock during suspend/resume

2020-08-04 Thread Stephen Boyd
I see it takes about 5us per regulator to grab the lock, check that this regulator isn't going to do anything for suspend, and then release the lock. When that is combined with PMICs that have dozens of regulators we get into a state where we spend a few miliseconds doing a bunch of locking