]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc64: Save & restore of PCI device BARS
authorLinas Vepstas <linas@linas.org>
Fri, 4 Nov 2005 00:50:17 +0000 (18:50 -0600)
committerPaul Mackerras <paulus@samba.org>
Thu, 10 Nov 2005 00:38:14 +0000 (11:38 +1100)
commita351d1f682f2f633820243b030453c532706a340
treec147ee62bdb580a17d0eec827740c1d97dd29967
parent50d1444ea45ca7062085b30a0bd524d5dea3c36d
[PATCH] ppc64: Save & restore of PCI device BARS

14-eeh-device-bar-save.patch

After a PCI device has been resest, the device BAR's and other config
space info must be restored to the same state as they were in when
the firmware first handed us this device.  This will allow the
PCI device driver, when restarted, to correctly recognize and set up
the device.

Tis patch saves the device config space as early as reasonable after
the firmware has handed over the device.  Te state resore funcion
is inteded for use by the EEH recovery routines.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/eeh.c
include/asm-powerpc/ppc-pci.h