Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

viafb: restore display on resume

This patch makes viafb restore the display on resume by calling
viafb_set_par. Resumeing has still its issues:
- will probably freeze most machines (for me on VX800 reliable on the
second resume)
- under some configurations the screen appears on the wrong output
device (reason unknown)

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Cc: Joseph Chan <JosephChan@via.com.tw>

+3
+3
drivers/video/via/viafbdev.c
··· 1705 1705 viaparinfo->shared->saved_regs, 1706 1706 0x100 * sizeof(u32)); 1707 1707 1708 + viafb_set_par(viafbinfo); 1709 + if (viafb_dual_fb) 1710 + viafb_set_par(viafbinfo1); 1708 1711 fb_set_suspend(viafbinfo, 0); 1709 1712 1710 1713 fail: