]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Read back MSI message in rtas_setup_msi_irqs() so restore works
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 23 Oct 2007 04:23:44 +0000 (14:23 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 8 Nov 2007 03:15:29 +0000 (14:15 +1100)
commit1db3e890aed3ac39cded30d6e94618bda086f7ce
treeafef5e36585ee399e35e2e6e28f3f4af8e626594
parentbdd71eec9b24fb6f7e83148f73c2312a42b2aed5
[POWERPC] Read back MSI message in rtas_setup_msi_irqs() so restore works

There are plans afoot to use pci_restore_msi_state() to restore MSI
state after a device reset.  In order for this to work for the RTAS MSI
backend, we need to read back the MSI message from config space after
it has been setup by firmware.

This should be sufficient for restoring the MSI state after a device
reset, however we will need to revisit this for suspend to disk if that
is ever implemented on pseries.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/msi.c