summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
77a1a67)
The handling of the "usage counter" is incorrect, and the clock should
only be disabled when transitioning from 1 to 0.
Reported-by: Chris Brand <chris.brand@broadcom.com>
Signed-off-by: Steve Rae <srae@broadcom.com>
- if (!c->use_cnt) {
- c->use_cnt++;
ret = c->ops->enable(c, 1);
ret = c->ops->enable(c, 1);
if (!c->ops || !c->ops->enable)
return;
if (!c->ops || !c->ops->enable)
return;
+ if (c->use_cnt == 0)
+ c->ops->enable(c, 0);