Re: [PATCH 1/2] ACPI / hotplug / PCI: Avoid doing too much for spurious notifies

2013-09-06 Thread Rafael J. Wysocki
On Friday, September 06, 2013 08:46:28 AM Yinghai Lu wrote: > On Fri, Sep 6, 2013 at 6:43 AM, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Sometimes we may get a spurious device check or bus check notify for > > a hotplug device and in those cases we should avoid doing all of the

Re: [PATCH 1/2] ACPI / hotplug / PCI: Avoid doing too much for spurious notifies

2013-09-06 Thread Yinghai Lu
On Fri, Sep 6, 2013 at 6:43 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Sometimes we may get a spurious device check or bus check notify for > a hotplug device and in those cases we should avoid doing all of the > configuration work needed when something actually changes. To that

[PATCH 1/2] ACPI / hotplug / PCI: Avoid doing too much for spurious notifies

2013-09-06 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Sometimes we may get a spurious device check or bus check notify for a hotplug device and in those cases we should avoid doing all of the configuration work needed when something actually changes. To that end, check the return value of pci_scan_slot() in enable_slot() and