[PATCH v2 2/2] regulator: core: Avoid propagating to supplies when possible

2018-11-20 Thread Douglas Anderson
When we called regulator_enable() on a regulator we'd end up propagating that call all the way up the chain every time. This is a bit of a waste of time. A child regulator already refcounts its own enables so it should avoid passing on to its parent unless the refcount transitioned between 0 and

[PATCH v2 2/2] regulator: core: Avoid propagating to supplies when possible

2018-11-20 Thread Douglas Anderson
When we called regulator_enable() on a regulator we'd end up propagating that call all the way up the chain every time. This is a bit of a waste of time. A child regulator already refcounts its own enables so it should avoid passing on to its parent unless the refcount transitioned between 0 and