]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00227568 elcdif: fix fb wait for vsync timeout when suspend and resume
authorRobby Cai <R63905@freescale.com>
Tue, 9 Oct 2012 11:59:25 +0000 (19:59 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:32 +0000 (08:35 +0200)
commitef9607bf18a266ff056a48fbda7142293530aa73
tree8210edec0a7537f0396f9236efe336cdc364f712
parentd4bb9587e2fc139369e9300768a179bf152c9bc5
ENGR00227568 elcdif: fix fb wait for vsync timeout when suspend and resume

When suspend, the lcdif and panel will be stopped. When resume, fb_set_par()
will be called, in which the lcdif and the panel will be re-initialized.
However, fb_set_par() also checks the parameters via mxc_elcdif_fb_par_equal(),
which will probably make fb_set_par() just return with them un-initialized.
And thus, the interrupt will not come. This patch added a varible to check
whether they're running along with mxc_elcdif_fb_par_equal() checking to
fix the issue. If not running, re-initialization will be forcely done.

Signed-off-by: Robby Cai <R63905@freescale.com>
drivers/video/mxc/mxc_elcdif_fb.c