diff options
author | Fancy Fang <chen.fang@freescale.com> | 2015-09-23 16:49:12 +0800 |
---|---|---|
committer | Fancy Fang <chen.fang@freescale.com> | 2015-09-23 17:07:44 +0800 |
commit | 969122c2f4363dee4cf489b87984c4d85dcd89ce (patch) | |
tree | d9ed83f611f0404ca5de98dd88c113fca88aa4f1 /drivers | |
parent | cd245b34afb8e3dab9086eff6870820559a16688 (diff) |
MLK-11608 video: mxsfb: add parameter equal bypass count
This parameter bypass count is used to make sure the mipi
dsi be initialized correctly without any display error.
In the mipi dsi initialization, it requires the first
two parameter setting operations should be done really.
Signed-off-by: Fancy Fang <chen.fang@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/mxsfb.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 4d38ef35e3d8..f139016827c1 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -646,10 +646,14 @@ static int mxsfb_set_par(struct fb_info *fb_info) u32 ctrl, vdctrl0, vdctrl4; int line_size, fb_size; int reenable = 0; + static u32 equal_bypass = 0; - /* If parameter no change, don't reconfigure. */ - if (mxsfb_par_equal(fb_info, host)) - return 0; + if (likely(equal_bypass > 1)) { + /* If parameter no change, don't reconfigure. */ + if (mxsfb_par_equal(fb_info, host)) + return 0; + } else + equal_bypass++; dev_dbg(&host->pdev->dev, "%s\n", __func__); |