]> git.baikalelectronics.ru Git - kernel.git/commit
radeonfb: Whack the PCI PM register until it sticks
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 Mar 2009 22:22:30 +0000 (09:22 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 22 Mar 2009 18:08:53 +0000 (11:08 -0700)
commitd7bd93393c97888d70f969c3cc7398ece1e07117
tree6698711fdad0ded22c69b1e83d2984ffaf70cb96
parent487a912c2b0374c5d0cbe158c7673f701d4ae92b
radeonfb: Whack the PCI PM register until it sticks

This fixes a regression introduced when we switched to using the core
pci_set_power_state().  The chip seems to need the state to be written
over and over again until it sticks, so we do that.

Note that the code is a bit blunt, without timeout, etc...  but that's
pretty much because I put back in there the code exactly as it used to
be before the regression.  I still add a call to pci_set_power_state()
at the end so that ACPI gets called appropriately on x86.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Tested-by: Raymond Wooninck <tittiatcoke@gmail.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/aty/radeon_pm.c