]> git.karo-electronics.de Git - linux-beck.git/commitdiff
viafb: restore display on resume
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 26 Apr 2010 16:37:53 +0000 (16:37 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 24 Oct 2010 13:04:47 +0000 (13:04 +0000)
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>
drivers/video/via/viafbdev.c

index 596235b5a5f0ee195884482b9790ffaea9da7f94..6a7327eaf8694bf7acd81cb002a578e27a5a0bb1 100644 (file)
@@ -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: