Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a2aa6b82 authored by Praneeth Paladugu's avatar Praneeth Paladugu Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Update the clock state variable before unprepare clocks



Clock state variable is used to check if clock is enabled or not.
While preparing the clocks the state is updated once all the clocks
are prepared and enabled. While disabling the state is updated once
all the clocks are disabled. So there is a delay between first clock
unprepare and the variable update. At this point if someone reads the
clock state it shows the clock is enabled where as the clock is
actually disabled. Hence update the variable before unpreparing the
first clock. This also matches with prepare enable update.

Change-Id: I3f4bcee696a168f39b55241cae2dc00cdb18d36b
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
parent 28890934
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment