mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
disp: msm: dsi: Fix DFPS sequence when constant fps is enabled
When DFPS and dynamic clock switch with constant fps are enabled, wait for dynamic refresh done only if clock switch is triggered. In case where only fps changes, clock remains same. So, wait for dynamic refresh done is not required. Change-Id: I1a96d8d6756086afe2cd6e5bdc19be27c2ffed92 Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
This commit is contained in:
parent
0b595d4f3e
commit
49a0dd3ef4
1 changed files with 9 additions and 1 deletions
|
|
@ -1057,8 +1057,16 @@ int dsi_conn_post_kickoff(struct drm_connector *connector,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
/*
|
||||
* When both DFPS and dynamic clock switch with constant
|
||||
* fps features are enabled, wait for dynamic refresh done
|
||||
* only in case of clock switch.
|
||||
* In case where only fps changes, clock remains same.
|
||||
* So, wait for dynamic refresh done is not required.
|
||||
*/
|
||||
if ((ctrl_version >= DSI_CTRL_VERSION_2_5) &&
|
||||
(dyn_clk_caps->maintain_const_fps)) {
|
||||
(dyn_clk_caps->maintain_const_fps) &&
|
||||
(adj_mode.dsi_mode_flags & DSI_MODE_FLAG_DYN_CLK)) {
|
||||
display_for_each_ctrl(i, display) {
|
||||
ctrl = &display->ctrl[i];
|
||||
rc = dsi_ctrl_wait4dynamic_refresh_done(
|
||||
|
|
|
|||
Loading…
Reference in a new issue