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: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Acked-by: NJonathan Corbet <corbet@lwn.net>
Cc: Joseph Chan <JosephChan@via.com.tw>
上级 3fd9b6cc
...@@ -1705,6 +1705,9 @@ int viafb_resume(struct pci_dev *pdev) ...@@ -1705,6 +1705,9 @@ int viafb_resume(struct pci_dev *pdev)
viaparinfo->shared->saved_regs, viaparinfo->shared->saved_regs,
0x100 * sizeof(u32)); 0x100 * sizeof(u32));
viafb_set_par(viafbinfo);
if (viafb_dual_fb)
viafb_set_par(viafbinfo1);
fb_set_suspend(viafbinfo, 0); fb_set_suspend(viafbinfo, 0);
fail: fail:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册