From: Ondrej Zajicek Date: Mon, 28 Apr 2008 09:15:17 +0000 (-0700) Subject: fbdev: vt8623fb: better resume from STR X-Git-Tag: v2.6.26-rc1~810 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f5af9de9cf3cbf51c5758a1d5ea266aea6fe175;p=linux-2.6 fbdev: vt8623fb: better resume from STR After resume from STR, image is shifted by 8 pixels to the left. This patch fixes it. Signed-off-by: Ondrej Zajicek Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/vt8623fb.c b/drivers/video/vt8623fb.c index f6895ef6bf..0b9dd22f3e 100644 --- a/drivers/video/vt8623fb.c +++ b/drivers/video/vt8623fb.c @@ -436,6 +436,10 @@ static int vt8623fb_set_par(struct fb_info *info) svga_wcrt_multi(vt8623_offset_regs, offset_value); svga_wseq_multi(vt8623_fetch_count_regs, fetch_value); + /* Clear H/V Skew */ + svga_wcrt_mask(0x03, 0x00, 0x60); + svga_wcrt_mask(0x05, 0x00, 0x60); + if (info->var.vmode & FB_VMODE_DOUBLE) svga_wcrt_mask(0x09, 0x80, 0x80); else