Re: [RFC 09/11] pci/hotplug/pnv-php: Relax check when disabling slot

2019-07-02 Thread Andrew Donnellan
On 19/6/19 11:28 pm, Frederic Barrat wrote: The driver only allows to disable a slot in the POPULATED state. However, if an error occurs while enabling the slot, say because the link couldn't be trained, then the POPULATED state may not be reached, yet the power state of the slot is on. So allow

[RFC 09/11] pci/hotplug/pnv-php: Relax check when disabling slot

2019-06-19 Thread Frederic Barrat
The driver only allows to disable a slot in the POPULATED state. However, if an error occurs while enabling the slot, say because the link couldn't be trained, then the POPULATED state may not be reached, yet the power state of the slot is on. So allow to disable a slot in the REGISTERED state. Rem