All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] PCI: Universal error recoverability of devices
@ 2025-11-19  8:50 Lukas Wunner
  2025-11-19  8:50 ` [PATCH v2 1/3] PCI/PM: Reinstate clearing state_saved in legacy and !pm codepaths Lukas Wunner
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Lukas Wunner @ 2025-11-19  8:50 UTC (permalink / raw)
  To: Bjorn Helgaas, Rafael J. Wysocki
  Cc: Riana Tauro, Sean C. Dardis, Farhan Ali, Benjamin Block,
	Niklas Schnelle, Alek Du, Mahesh J Salgaonkar, Oliver OHalloran,
	linuxppc-dev, linux-pci, linux-pm

This series intends to replace commit 1dc302f7fccc ("PCI: Ensure error
recoverability at all times") on the pci/err topic branch:

https://git.kernel.org/pci/pci/c/1dc302f7fccc

The commit is assigning "dev->state_saved = false" in pci_bus_add_device()
and during review there were requests to explain the assignment more
clearly in a code comment.

However the assignment is (only) necessitated by missing assignments in
pci_legacy_suspend() and pci_pm_freeze(), so I propose to instead add
*those* assignments (patch [1/3]) and thus avoid the need for the
assignment in pci_bus_add_device(), together with its code comment.

Furthermore the commit is *removing* an assignment in pci_device_add().
I am separating that out to new patch [2/3].

So patch [3/3] is identical to the commit, but without the addition
of an assignment in pci_bus_add_device() and without the removal
of an assignment in pci_device_add().

I am looking into improving the documentation on pci_save_state()
in a separate series.

Lukas Wunner (3):
  PCI/PM: Reinstate clearing state_saved in legacy and !pm codepaths
  PCI/PM: Stop needlessly clearing state_saved on enumeration and thaw
  PCI/ERR: Ensure error recoverability at all times

 drivers/pci/bus.c        | 3 +++
 drivers/pci/pci-driver.c | 6 ++++--
 drivers/pci/pci.c        | 3 ---
 drivers/pci/probe.c      | 2 --
 4 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-11-27 12:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-19  8:50 [PATCH v2 0/3] PCI: Universal error recoverability of devices Lukas Wunner
2025-11-19  8:50 ` [PATCH v2 1/3] PCI/PM: Reinstate clearing state_saved in legacy and !pm codepaths Lukas Wunner
2025-11-19 21:08   ` Rafael J. Wysocki
2025-11-25 23:18   ` Bjorn Helgaas
2025-11-26 12:49     ` Lukas Wunner
2025-11-26 23:46       ` Bjorn Helgaas
2025-11-27  7:58         ` Lukas Wunner
2025-11-27 12:51           ` Rafael J. Wysocki
2025-11-19  8:50 ` [PATCH v2 2/3] PCI/PM: Stop needlessly clearing state_saved on enumeration and thaw Lukas Wunner
2025-11-19 21:09   ` Rafael J. Wysocki
2025-11-19  8:50 ` [PATCH v2 3/3] PCI/ERR: Ensure error recoverability at all times Lukas Wunner
2025-11-25 21:03 ` [PATCH v2 0/3] PCI: Universal error recoverability of devices Bjorn Helgaas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.