disp: msm: sde: fix bandwidth voting in resume usecase

This change resets the bandwidth vote after lastclose is called
and all the custom properties are reset. This is required so that
on next power commit when user space driver does not apply any
bandwidth vote, driver applies correct vote. Additionally this
change ensures that aggregate bandwidth vote never exceeds the
max threshold.

Change-Id: I95ca761b381709850b630ecd6647b45968a5041e
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
This commit is contained in:
Abhijit Kulkarni
2020-05-26 10:39:52 -07:00
parent 897da30d8f
commit 5bf05a7302
2 changed files with 5 additions and 0 deletions

View File

@@ -5573,6 +5573,9 @@ int sde_crtc_helper_reset_custom_properties(struct drm_crtc *crtc,
}
}
/* disable clk and bw control until clk & bw properties are set */
cstate->bw_control = false;
cstate->bw_split_vote = false;
return 0;
}