From: Krzysztof Helt Date: Fri, 6 Jun 2008 05:46:33 +0000 (-0700) Subject: fbcon: fix wrong vmode bits copied on console switch X-Git-Tag: v2.6.26-rc6~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10732c35dff6c2e15e413e7806a7114a2faa0ecf;p=platform%2Fkernel%2Flinux-3.10.git fbcon: fix wrong vmode bits copied on console switch The interlaced and double line mode bits should not be copied to new console when the console is switched. Otherwise, the new console may be set to incorrect refresh rate. Also, the x and y offsets does not need to be copied. Signed-off-by: Krzysztof Helt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 5fa8b76..97aff8d 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -2275,9 +2275,7 @@ static int fbcon_switch(struct vc_data *vc) * in fb_set_var() */ info->var.activate = var.activate; - var.yoffset = info->var.yoffset; - var.xoffset = info->var.xoffset; - var.vmode = info->var.vmode; + var.vmode |= info->var.vmode & ~FB_VMODE_MASK; fb_set_var(info, &var); ops->var = info->var;