Skip to content

Commit

Permalink
da8xx-fb: do not turn ON LCD backlight unless LCDC is enabled
Browse files Browse the repository at this point in the history
LCD blink is observed during suspend/resume and blank/unblank
operations as backlight is ON during LCDC disable and enable.
So make sure to turn OFF backlight before disabling and turn
it ON after enabling.

Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Manjunathappa, Prakash authored and Florian Tobias Schandinat committed Jul 29, 2012
1 parent ac33a20 commit f7c848b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/video/da8xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,10 +1038,10 @@ static int cfb_blank(int blank, struct fb_info *info)
par->blank = blank;
switch (blank) {
case FB_BLANK_UNBLANK:
lcd_enable_raster();

if (par->panel_power_ctrl)
par->panel_power_ctrl(1);

lcd_enable_raster();
break;
case FB_BLANK_NORMAL:
case FB_BLANK_VSYNC_SUSPEND:
Expand Down Expand Up @@ -1422,11 +1422,12 @@ static int fb_resume(struct platform_device *dev)
struct da8xx_fb_par *par = info->par;

console_lock();
clk_enable(par->lcdc_clk);
lcd_enable_raster();

if (par->panel_power_ctrl)
par->panel_power_ctrl(1);

clk_enable(par->lcdc_clk);
lcd_enable_raster();
fb_set_suspend(info, 0);
console_unlock();

Expand Down

0 comments on commit f7c848b

Please sign in to comment.