diff options
author | Linas Vepstas <linas@linas.org> | 2005-11-03 19:55:19 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-09 23:30:39 -0500 |
commit | 7684b40cb53ba00cc51271f1c42897b776c48fbc (patch) | |
tree | 19155abfd3b76d13b55dfb6fdf1a46e4a8c0a048 /arch/powerpc/platforms/pseries/eeh_cache.c | |
parent | d177c207ba16b1db31283e2d1fee7ad4a863584b (diff) |
[PATCH] powerpc: Save device BARs much earlier in the boot sequence
241-eeh-save-bars-earlier.patch
Save the PCI device bars *before* any PCI probing is done.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
(cherry picked from 76c902b919098860f3d4e125f847abcc4cb1782a commit)
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh_cache.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh_cache.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_cache.c b/arch/powerpc/platforms/pseries/eeh_cache.c index ff6c938f424..71b2187581a 100644 --- a/arch/powerpc/platforms/pseries/eeh_cache.c +++ b/arch/powerpc/platforms/pseries/eeh_cache.c | |||
@@ -304,10 +304,7 @@ void __init pci_addr_cache_build(void) | |||
304 | 304 | ||
305 | pci_addr_cache_insert_device(dev); | 305 | pci_addr_cache_insert_device(dev); |
306 | 306 | ||
307 | /* Save the BAR's; firmware doesn't restore these after EEH reset */ | ||
308 | dn = pci_device_to_OF_node(dev); | 307 | dn = pci_device_to_OF_node(dev); |
309 | eeh_save_bars(dev, PCI_DN(dn)); | ||
310 | |||
311 | pci_dev_get (dev); /* matching put is in eeh_remove_device() */ | 308 | pci_dev_get (dev); /* matching put is in eeh_remove_device() */ |
312 | PCI_DN(dn)->pcidev = dev; | 309 | PCI_DN(dn)->pcidev = dev; |
313 | } | 310 | } |