kernel-hacking-2024-linux-s.../drivers/pci
Rafael J. Wysocki 4b77b0a2ba PCI: Clear saved_state after the state has been restored
Some PCI devices fail if their standard configuration registers are
restored twice in a row.  Prevent this from happening by making
pci_restore_state() clear the saved_state flag of the device right
after the device's standard configuration registers have been
populated with the previously saved values.

Simplify PCI PM callbacks by removing the direct clearing of
state_saved from them, as it shouldn't be necessary any more (except
in pci_pm_thaw(), where it has to be cleared, so that the values saved
during the "freeze" phase of hibernation are not used later by mistake).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-09-14 13:41:46 -07:00
..
hotplug PCI Hotplug: convert acpi_pci_detect_ejectable() to take an acpi_handle 2009-09-14 08:46:58 -07:00
pcie PCI / PCIe portdrv: Fix pcie_portdrv_slot_reset() 2009-09-14 13:38:55 -07:00
.gitignore
access.c
bus.c
dmar.c
hotplug-pci.c
hotplug.c
htirq.c
intel-iommu.c intel-iommu: Fix enabling snooping feature by mistake 2009-08-06 11:35:50 +01:00
intr_remapping.c
intr_remapping.h
iov.c PCI SR-IOV: correct broken resource alignment calculations 2009-08-30 08:37:25 -07:00
iova.c
irq.c
Kconfig
legacy.c PCI: disable pci_find_device warnings when deprecated pci functions are enabled 2009-09-09 13:29:25 -07:00
Makefile PCI: disable pci_find_device warnings when deprecated pci functions are enabled 2009-09-09 13:29:25 -07:00
msi.c PCI MSI: Style cleanups 2009-09-09 13:29:35 -07:00
msi.h
pci-acpi.c PCI / ACPI PM: Propagate wake-up enable for devices w/o ACPI support 2009-09-09 14:19:24 -07:00
pci-driver.c PCI: Clear saved_state after the state has been restored 2009-09-14 13:41:46 -07:00
pci-stub.c PCI: pci-stub: add pci_stub.ids parameter 2009-09-09 13:44:34 -07:00
pci-sysfs.c PCI: expose function reset capability in sysfs 2009-09-09 13:29:24 -07:00
pci.c PCI: Clear saved_state after the state has been restored 2009-09-14 13:41:46 -07:00
pci.h PCI: Simplify hotplug mch quirk. 2009-09-09 14:06:49 -07:00
probe.c PCI: Clear saved_state after the state has been restored 2009-09-14 13:41:46 -07:00
proc.c
quirks.c PCI: use dev_printk in quirk messages 2009-09-14 13:39:00 -07:00
remove.c
rom.c
search.c PCI: disable pci_find_device warnings when deprecated pci functions are enabled 2009-09-09 13:29:25 -07:00
setup-bus.c PCI: pcie: Ensure hotplug ports have a minimum number of resources 2009-09-09 14:10:24 -07:00
setup-irq.c
setup-res.c PCI: export pci_claim_resource for driver use 2009-09-09 13:29:20 -07:00
slot.c
syscall.c headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00