disp: msm: dsi: fix RFI mode set detection
Currently mode fixup function is called multiple times in the same commit. This causes invalid combination of DSI mode flags to be set when there is an RFI change with proch compensation feature enabled. This change modifies the mode switch condition for DMS to compare internal dsi mode and flags and fixes the dynamic clock change detection by using a single variable. Change-Id: Iaf9c8ca7c6a27f26aefead399bc93fbbb02b404b Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
1881acdb2b
commit
e3c76571dc
@@ -7336,7 +7336,7 @@ int dsi_display_validate_mode_change(struct dsi_display *display,
|
||||
}
|
||||
|
||||
/* dynamic clk change use case */
|
||||
if (cur_mode->pixel_clk_khz != adj_mode->pixel_clk_khz) {
|
||||
if (display->dyn_bit_clk_pending) {
|
||||
if (dyn_clk_caps->dyn_clk_support) {
|
||||
DSI_DEBUG("dynamic clk change detected\n");
|
||||
if ((adj_mode->dsi_mode_flags &
|
||||
@@ -7362,6 +7362,7 @@ int dsi_display_validate_mode_change(struct dsi_display *display,
|
||||
cur_mode->pixel_clk_khz,
|
||||
adj_mode->pixel_clk_khz);
|
||||
}
|
||||
display->dyn_bit_clk_pending = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8612,8 +8613,6 @@ int dsi_display_update_dyn_bit_clk(struct dsi_display *display,
|
||||
display->dyn_bit_clk, mode->priv_info->min_dsi_clk_hz, lanes, bpp,
|
||||
mode->pixel_clk_khz);
|
||||
|
||||
display->dyn_bit_clk_pending = false;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user