Re: powerpc/powernv: Detach from PE on releasing PCI device

2016-09-15 Thread Michael Ellerman
On Tue, 2016-06-09 at 06:34:01 UTC, Gavin Shan wrote: > 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

[PATCH] powerpc/powernv: Detach from PE on releasing PCI device

2016-09-05 Thread Gavin Shan
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 le