Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7c848b6 authored by Manjunathappa, Prakash's avatar Manjunathappa, Prakash Committed by Florian Tobias Schandinat
Browse files

da8xx-fb: do not turn ON LCD backlight unless LCDC is enabled



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: default avatarManjunathappa, Prakash <prakash.pm@ti.com>
Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
parent ac33a207
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -1038,10 +1038,10 @@ static int cfb_blank(int blank, struct fb_info *info)
	par->blank = blank;
	par->blank = blank;
	switch (blank) {
	switch (blank) {
	case FB_BLANK_UNBLANK:
	case FB_BLANK_UNBLANK:
		lcd_enable_raster();

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

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


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

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


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