radeonfb: Fix resume from D3Cold on some platforms
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Feb 2009 01:06:52 +0000 (12:06 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 8 Feb 2009 18:48:57 +0000 (10:48 -0800)
commit1fb25cb8b83e85f5bf1a4adb3c9a254c4ce92405
treee591b556e43577f34eb90e9a4d8342ff97bef4ef
parentb746bb77627cba62765ff2afeec9cc9a8cbb926c
radeonfb: Fix resume from D3Cold on some platforms

For historical reason, this driver used its own saving/restoring
of the PCI config space, and used the state of it on resume as
an indication as to whether it needed to re-POST the chip or not.

This methods breaks with the later core changes since the core will
have restored things for us.

This patch fixes it by removing that custom code, using standard
core methods to save/restore state, and testing for the need to
re-POST by comparing the content of a few key PLL registers.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/aty/radeon_pm.c
drivers/video/aty/radeonfb.h