From: Florian Tobias Schandinat Date: Mon, 26 Apr 2010 16:37:53 +0000 (+0000) Subject: viafb: restore display on resume X-Git-Tag: firefly_0821_release~7613^2~3603^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b75f2c01de34daf0b25cbd75fcf00511548ffa1e;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Jonathan Corbet Cc: Joseph Chan --- diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c index 596235b5a5f0..6a7327eaf869 100644 --- a/drivers/video/via/viafbdev.c +++ b/drivers/video/via/viafbdev.c @@ -1705,6 +1705,9 @@ int viafb_resume(struct pci_dev *pdev) viaparinfo->shared->saved_regs, 0x100 * sizeof(u32)); + viafb_set_par(viafbinfo); + if (viafb_dual_fb) + viafb_set_par(viafbinfo1); fb_set_suspend(viafbinfo, 0); fail: