mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 00:26:39 +08:00
pm3fb: switching between X and fb fix
This patch correctly restores console state after switching from X. Otherwise, screen is always off after switching from X. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
27390bc335
commit
0bd327ef28
@ -498,7 +498,7 @@ static int pm3fb_set_par(struct fb_info *info)
|
||||
else
|
||||
par->video |= PM3VideoControl_LINE_DOUBLE_OFF;
|
||||
|
||||
if (info->var.activate == FB_ACTIVATE_NOW)
|
||||
if ((info->var.activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW)
|
||||
par->video |= PM3VideoControl_ENABLE;
|
||||
else {
|
||||
par->video |= PM3VideoControl_DISABLE;
|
||||
|
Loading…
Reference in New Issue
Block a user