kernel_optimize_test/drivers/pci
Rafael J. Wysocki dc15e71eef PCI / PM: Restore PME Enable if skipping wakeup setup
The wakeup_prepared PCI device flag is used for preventing subsequent
changes of PCI device wakeup settings in the same way (e.g. enabling
device wakeup twice in a row).

However, in some cases PME Enable may be updated by things like PCI
configuration space restoration in the meantime and it may need to be
set again even though the rest of the settings need not change, so
modify __pci_enable_wake() to do that when it is about to return
early.

Also, it is reasonable to expect that __pci_enable_wake() will always
clear PME Status when invoked to disable device wakeup, so make it do
so even if it is going to return early then.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
2017-06-15 00:55:44 +02:00
..
dwc PCI: imx6: Fix config read timeout handling 2017-05-22 17:06:30 -05:00
endpoint PCI: endpoint: Make PCI_ENDPOINT depend on HAS_DMA 2017-05-22 16:23:59 -05:00
host
hotplug Annotation of module parameters that specify device settings 2017-05-10 19:13:03 -07:00
pcie
switch switchtec: Fix minor bug with partition ID register 2017-05-22 16:52:30 -05:00
access.c
ats.c
bus.c
ecam.c
host-bridge.c
hotplug-pci.c
htirq.c
iov.c
irq.c pci-v4.12-changes 2017-05-08 19:03:25 -07:00
Kconfig
Makefile
mmap.c
msi.c pci-v4.12-changes 2017-05-08 19:03:25 -07:00
of.c
pci-acpi.c ACPI / PM: Run wakeup notify handlers synchronously 2017-06-15 00:55:42 +02:00
pci-driver.c
pci-label.c
pci-mid.c
pci-stub.c
pci-sysfs.c
pci.c PCI / PM: Restore PME Enable if skipping wakeup setup 2017-06-15 00:55:44 +02:00
pci.h pci-v4.12-changes 2017-05-08 19:03:25 -07:00
probe.c IOMMU Updates for Linux v4.12 2017-05-09 15:15:47 -07:00
proc.c
quirks.c
remove.c
rom.c
search.c
setup-bus.c
setup-irq.c
setup-res.c
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c