[PATCH 5/7] [ARM] s3c-fb: Added missing window enabled state updates.

From
Pawel Osciak <hidden>
Date
2009-09-11 18:05:00
Also in
linux-arm-kernel
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Pawel Osciak <redacted>

---
 drivers/video/s3c-fb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 307a7e8..226d225 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -401,6 +401,7 @@ static int s3c_fb_set_par(struct fb_info *info)
 		writel(osdc_data, regs + VIDOSD_C(win_no));
 
 	data = WINCONx_ENWIN;
+	sfb->enabled |= (1 << win_no);
 
 	/* note, since we have to round up the bits-per-pixel, we end up
 	 * relying on the bitfield information for r/g/b/a to work out
@@ -633,6 +634,7 @@ static int s3c_fb_blank(int blank_mode, struct fb_info *info)
 		/* disable the DMA and display 0x0 (black) */
 		writel(WINxMAP_MAP | WINxMAP_MAP_COLOUR(0x0),
 		       sfb->regs + WINxMAP(index));
+        sfb->enabled &= ~(1 << index);
 		break;
 
 	case FB_BLANK_UNBLANK:
-- 
1.6.4.2.253.g0b1fac

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help