powerpc/eeh: Fix fetching bus for single-dev-PE
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 5 Jun 2013 07:34:02 +0000 (15:34 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Jun 2013 07:04:33 +0000 (17:04 +1000)
commit5fb621698e94e3af8b413d9439041fde48e2784d
treea2f9493d15a9c19d5978f14fcfe8e8f5e0ab6033
parent475e68cfdde39e6d95055999b0cb42fdb2bea0ca
powerpc/eeh: Fix fetching bus for single-dev-PE

While running Linux as guest on top of phyp, we possiblly have
PE that includes single PCI device. However, we didn't return
its PCI bus correctly and it leads to failure on recovery from
EEH errors for single-dev-PE. The patch fixes the issue.

Cc: <stable@vger.kernel.org> # v3.7+
Cc: Steve Best <sbest@us.ibm.com>
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/eeh_pe.c