diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2013-06-27 07:46:45 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-07-01 03:10:32 +0200 |
commit | 88b6d14b2bb48ea4f66fedfe671f98544395b305 (patch) | |
tree | 9a535b752d29d95e06699da8fe6002472cda4f70 /arch/powerpc/kernel/eeh_cache.c | |
parent | powerpc/powernv: Replace variables with flags (diff) | |
download | linux-88b6d14b2bb48ea4f66fedfe671f98544395b305.tar.xz linux-88b6d14b2bb48ea4f66fedfe671f98544395b305.zip |
powerpc/eeh: Fix address catch for PowerNV
On the PowerNV platform, the EEH address cache isn't built correctly
because we skipped the EEH devices without binding PE. The patch
fixes that.
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/eeh_cache.c')
-rw-r--r-- | arch/powerpc/kernel/eeh_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/eeh_cache.c b/arch/powerpc/kernel/eeh_cache.c index 1d5d9a6ba740..858ebeaa2bac 100644 --- a/arch/powerpc/kernel/eeh_cache.c +++ b/arch/powerpc/kernel/eeh_cache.c @@ -194,7 +194,7 @@ static void __eeh_addr_cache_insert_dev(struct pci_dev *dev) } /* Skip any devices for which EEH is not enabled. */ - if (!edev->pe) { + if (!eeh_probe_mode_dev() && !edev->pe) { #ifdef DEBUG pr_info("PCI: skip building address cache for=%s - %s\n", pci_name(dev), dn->full_name); |