]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb126773a73f6cbb7adb65f7ddbc99fef70923f6
treee591b556e43577f34eb90e9a4d8342ff97bef4ef
parent3e808a9429791398a64a9596115ca061d6ded19d
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