]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Detach from PE on releasing PCI device
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 6 Sep 2016 06:34:01 +0000 (16:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 15 Sep 2016 03:53:19 +0000 (13:53 +1000)
commitf6e0b653c3f4f293dc57589972b95d695a950016
treea725a9e457f7a5445a20c649071ac0ea017cdf73
parent1e1a0929f5c7eb3ba173822737091b4d620224b4
powerpc/powernv: Detach from PE on releasing PCI device

The PCI hotplug can be part of EEH error recovery. The @pdn and
the device's PE number aren't removed and added afterwords. The
PE number in @pdn should be set to an invalid one. Otherwise, the
PE's device count is decreased on removing devices while failing
to be increased on adding devices. It leads to unbalanced PE's
device count and make normal PCI hotplug path broken.

Fixes: 997837a960a0 ("powerpc/powernv: Dynamically release PE")
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c