summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-omap-pm/dss2/0105-DSS2-OMAPFB-first-set-TE-then-update-mode.patch
blob: 40831a0428bcbbd71bcd76f0d1ac795db273a778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From f2fecd510357dbfb1f7a235ba9a74f1241b5224f Mon Sep 17 00:00:00 2001
From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Date: Tue, 9 Jun 2009 11:50:55 +0300
Subject: [PATCH 105/146] DSS2: OMAPFB: first set TE, then update mode

---
 drivers/video/omap2/omapfb/omapfb-main.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 4e93bd6..1fe770c 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -2042,17 +2042,17 @@ static int omapfb_probe(struct platform_device *pdev)
 	/* set the update mode */
 	if (def_display->caps & OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE) {
 #ifdef CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE
+		if (def_display->enable_te)
+			def_display->enable_te(def_display, 1);
 		if (def_display->set_update_mode)
 			def_display->set_update_mode(def_display,
 					OMAP_DSS_UPDATE_AUTO);
-		if (def_display->enable_te)
-			def_display->enable_te(def_display, 1);
 #else
+		if (def_display->enable_te)
+			def_display->enable_te(def_display, 0);
 		if (def_display->set_update_mode)
 			def_display->set_update_mode(def_display,
 					OMAP_DSS_UPDATE_MANUAL);
-		if (def_display->enable_te)
-			def_display->enable_te(def_display, 0);
 #endif
 	} else {
 		if (def_display->set_update_mode)
-- 
1.6.2.4