Check whether dc is enabled or not before
calling _tegra_dc_update_cmu_aligned.
"_tegra_dc_update_cmu_aligned" function.
When not checked, this ends up in a stack_dump
since NvCPLSvc service tries to set new cmu
values via frame_intr configuration even before
dc is enabled.
Bug
200072922
Bug
200100527
Change-Id: Ib39eaf6465fad7306c8870bec0ec57659931f8a2
Reviewed-on: http://git-master/r/750931
(cherry picked from commit
6f0845923071fb46b588391c2c721e56f7f25edd)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/756575
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
int ret;
mutex_lock(&dc->lock);
+ if (!dc->enabled) {
+ mutex_unlock(&dc->lock);
+ return 0;
+ }
ret = _tegra_dc_update_cmu_aligned(dc, cmu, false);
mutex_unlock(&dc->lock);