Skip to content

Commit

Permalink
msm: display: Fix conditions to enable TE on cmd panels
Browse files Browse the repository at this point in the history
Change-Id: I2aa8e4f927a520196c0e1d52073cd65d9c88b252
  • Loading branch information
nadlabak authored and dhacker29 committed Sep 10, 2013
1 parent d5eb986 commit df55beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/msm/mdp4_overlay_dsi_cmd.c
Expand Up @@ -795,14 +795,14 @@ void mdp4_mipi_vsync_enable(struct msm_fb_data_type *mfd,
mdp_clk_ctrl(1);

data = inpdw(MDP_BASE + 0x20c);
if ((mfd->use_mdp_vsync) && (mfd->ibuf.vsync_enable) &&
if ((mfd->use_mdp_vsync) &&
(mfd->panel_info.lcd.vsync_enable)) {
data |= tear_en;
/*
* rdptr init and irq cannot be same due to h/w bug.
* if they are same, rdptr irqs could be missed.
*/
if (mfd->panel_info.lcd.primary_vsync_init ||
if (mfd->panel_info.lcd.primary_vsync_init &&
mfd->panel_info.lcd.primary_rdptr_irq) {
MDP_OUTP(MDP_BASE + 0x128,
mfd->panel_info.lcd.primary_vsync_init);
Expand Down

0 comments on commit df55beb

Please sign in to comment.