Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0277dc

Browse files
committed
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
Pull another powerpc fix from Benjamin Herrenschmidt: "I mentioned that while we had fixed the kernel crashes, EEH error recovery didn't always recover... It appears that I had a fix for that already in powerpc-next (with a stable CC). I cherry-picked it today and did a few tests and it seems that things now work quite well. The patch is also pretty simple, so I see no reason to wait before merging it." * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: powerpc/eeh: Fix fetching bus for single-dev-PE
2 parents 4b48380 + ea461ab commit f0277dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/platforms/pseries/eeh_pe.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe)
639639

640640
if (pe->type & EEH_PE_PHB) {
641641
bus = pe->phb->bus;
642-
} else if (pe->type & EEH_PE_BUS) {
642+
} else if (pe->type & EEH_PE_BUS ||
643+
pe->type & EEH_PE_DEVICE) {
643644
edev = list_first_entry(&pe->edevs, struct eeh_dev, list);
644645
pdev = eeh_dev_to_pci_dev(edev);
645646
if (pdev)

0 commit comments

Comments
 (0)