aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-omap-pm/dss2/0106-DSS2-OMAPFB-Disable-forced-display-update-on-fb-cl.patch
blob: bf7febce2cfe254405d16b9854cd8828fecab60e (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
39
40
41
42
43
44
45
46
47
48
From fc26a92aecdb3ea3f72196f4e17bbd55589a75a8 Mon Sep 17 00:00:00 2001
From: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Date: Wed, 10 Jun 2009 14:14:35 +0300
Subject: [PATCH 106/146] DSS2: OMAPFB: Disable forced display update on fb close

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

diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 1fe770c..b4ac9ec 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -613,6 +613,7 @@ static int omapfb_open(struct fb_info *fbi, int user)
 
 static int omapfb_release(struct fb_info *fbi, int user)
 {
+#if 0
 	struct omapfb_info *ofbi = FB2OFB(fbi);
 	struct omapfb2_device *fbdev = ofbi->fbdev;
 	struct omap_dss_device *display = fb2display(fbi);
@@ -620,7 +621,7 @@ static int omapfb_release(struct fb_info *fbi, int user)
 	DBG("Closing fb with plane index %d\n", ofbi->id);
 
 	omapfb_lock(fbdev);
-#if 1
+
 	if (display && display->get_update_mode && display->update) {
 		/* XXX this update should be removed, I think. But it's
 		 * good for debugging */
@@ -635,13 +636,12 @@ static int omapfb_release(struct fb_info *fbi, int user)
 			display->update(display, 0, 0, w, h);
 		}
 	}
-#endif
 
 	if (display && display->sync)
 		display->sync(display);
 
 	omapfb_unlock(fbdev);
-
+#endif
 	return 0;
 }
 
-- 
1.6.2.4