aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux-kexecboot-2.6.24/tosa/tmiofb-fix-unaccel.patch
blob: d611342170a20f5b3fab9a32426fd664f644491f (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
Index: linux-2.6.24/drivers/video/tmiofb.c
===================================================================
--- linux-2.6.24.orig/drivers/video/tmiofb.c	2008-12-07 22:30:26.600128369 +0300
+++ linux-2.6.24/drivers/video/tmiofb.c	2008-12-07 22:31:42.537112538 +0300
@@ -689,14 +689,14 @@ static irqreturn_t tmiofb_irq(int irq, v
 	unsigned int			bbisc	= ioread16(&lcr->bbisc);
 
 
+	iowrite16(bbisc, &lcr->bbisc);
+
+#ifdef CONFIG_FB_TMIO_ACCELL
 	if (unlikely(par->use_polling && irq != -1)) {
 		printk(KERN_INFO "tmiofb: switching to waitq\n");
 		par->use_polling = false;
 	}
 
-	iowrite16(bbisc, &lcr->bbisc);
-
-#ifdef CONFIG_FB_TMIO_ACCELL
 	if (bbisc & 1)
 		wake_up(&par->wait_acc);
 #endif
@@ -972,8 +972,10 @@ static int tmiofb_suspend(struct platfor
 		info->fbops->fb_sync(info);
 
 
+#ifdef CONFIG_FB_TMIO_ACCELL
 	printk(KERN_INFO "tmiofb: switching to polling\n");
 	par->use_polling = true;
+#endif
 	tmiofb_hw_stop(dev);
 
 	if (cell->suspend)