Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f5af9de authored by Ondrej Zajicek's avatar Ondrej Zajicek Committed by Linus Torvalds
Browse files

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: default avatarOndrej Zajicek <santiago@crfreenet.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9201a858
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -436,6 +436,10 @@ static int vt8623fb_set_par(struct fb_info *info)
	svga_wcrt_multi(vt8623_offset_regs, offset_value);
	svga_wcrt_multi(vt8623_offset_regs, offset_value);
	svga_wseq_multi(vt8623_fetch_count_regs, fetch_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)
	if (info->var.vmode & FB_VMODE_DOUBLE)
		svga_wcrt_mask(0x09, 0x80, 0x80);
		svga_wcrt_mask(0x09, 0x80, 0x80);
	else
	else