Re: [PATCH 1/2] PCI: Add pci_ignore_hotplug() to ignore hotplug events for a device

2014-09-12 Thread Rajat Jain
Hi, On Thu, Sep 11, 2014 at 3:24 PM, Bjorn Helgaas wrote: > Powering off a hot-pluggable device, e.g., with pci_set_power_state(D3cold), > normally generates a hot-remove event that unbinds the driver. > > Some drivers expect to remain bound to a device even while they power it > off and back on

Re: [PATCH 1/2] PCI: Add pci_ignore_hotplug() to ignore hotplug events for a device

2014-09-12 Thread Rajat Jain
Hi, On Thu, Sep 11, 2014 at 3:24 PM, Bjorn Helgaas bhelg...@google.com wrote: Powering off a hot-pluggable device, e.g., with pci_set_power_state(D3cold), normally generates a hot-remove event that unbinds the driver. Some drivers expect to remain bound to a device even while they power it

[PATCH 1/2] PCI: Add pci_ignore_hotplug() to ignore hotplug events for a device

2014-09-11 Thread Bjorn Helgaas
Powering off a hot-pluggable device, e.g., with pci_set_power_state(D3cold), normally generates a hot-remove event that unbinds the driver. Some drivers expect to remain bound to a device even while they power it off and back on again. This can be dangerous, because if the device is removed or

[PATCH 1/2] PCI: Add pci_ignore_hotplug() to ignore hotplug events for a device

2014-09-11 Thread Bjorn Helgaas
Powering off a hot-pluggable device, e.g., with pci_set_power_state(D3cold), normally generates a hot-remove event that unbinds the driver. Some drivers expect to remain bound to a device even while they power it off and back on again. This can be dangerous, because if the device is removed or