From: Benjamin Herrenschmidt Date: Thu, 20 Dec 2007 03:55:05 +0000 (+1100) Subject: [POWERPC] Disable PCI IO/Mem on a device when resources can't be allocated X-Git-Tag: v2.6.25-rc1~1131^2~233 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=553aa7659bc0e188348f64e978343ed984eb6e56;p=pandora-kernel.git [POWERPC] Disable PCI IO/Mem on a device when resources can't be allocated This patch changes the PowerPC PCI code to disable IO and/or Memory decoding on a PCI device when a resource of that type failed to be allocated. This is done to avoid having unallocated dangling BARs enabled that might try to decode on top of other devices. If a proper resource is assigned later on, then pci_enable_device() will take care of re-enabling decoding. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed