Merge "msm: mdss: Correct MDSS display wakeup time calculation"
This commit is contained in:
commit
bc1c25b0ef
1 changed files with 2 additions and 8 deletions
|
@ -2736,10 +2736,7 @@ int mdss_mdp_display_wakeup_time(struct mdss_mdp_ctl *ctl,
|
||||||
if (!clk_period)
|
if (!clk_period)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
time_of_line = (pinfo->lcdc.h_back_porch +
|
time_of_line = mdss_panel_get_htotal(pinfo, true) * clk_period;
|
||||||
pinfo->lcdc.h_front_porch +
|
|
||||||
pinfo->lcdc.h_pulse_width +
|
|
||||||
pinfo->xres) * clk_period;
|
|
||||||
|
|
||||||
time_of_line /= 1000; /* in nano second */
|
time_of_line /= 1000; /* in nano second */
|
||||||
if (!time_of_line)
|
if (!time_of_line)
|
||||||
|
@ -2747,10 +2744,7 @@ int mdss_mdp_display_wakeup_time(struct mdss_mdp_ctl *ctl,
|
||||||
|
|
||||||
current_line = ctl->ops.read_line_cnt_fnc(ctl);
|
current_line = ctl->ops.read_line_cnt_fnc(ctl);
|
||||||
|
|
||||||
total_line = pinfo->lcdc.v_back_porch +
|
total_line = mdss_panel_get_vtotal(pinfo);
|
||||||
pinfo->lcdc.v_front_porch +
|
|
||||||
pinfo->lcdc.v_pulse_width +
|
|
||||||
pinfo->yres;
|
|
||||||
|
|
||||||
if (current_line >= total_line)
|
if (current_line >= total_line)
|
||||||
time_to_vsync = time_of_line * total_line;
|
time_to_vsync = time_of_line * total_line;
|
||||||
|
|
Loading…
Add table
Reference in a new issue