Re: [PATCH v4 03/11] PCI: liveupdate: Track incoming preserved PCI devices

From: Bjorn Helgaas

Date: Mon Apr 27 2026 - 17:07:25 EST


On Thu, Apr 23, 2026 at 09:23:07PM +0000, David Matlack wrote:
> During PCI enumeration, the previous kernel might have passed state about
> devices that were preserved across kexec. The PCI core needs to fetch
> this state to identify which devices are "incoming" and require special
> handling.

> +++ b/drivers/pci/liveupdate.c

> +void pci_liveupdate_finish(struct pci_dev *dev)
> +{
> + if (!dev->liveupdate_incoming) {
> + pci_warn(dev, "Cannot finish preserving an unpreserved device\n");
> + return;
> + }
> +
> + pci_info(dev, "Device is finished participating in Live Update\n");
> +
> + /*
> + * Drop the refcount so this device does not get treated as an incoming
> + * device again, e.g. in case pci_liveupdate_setup_device() gets called
> + * again becase the device is hot-plugged.

s/becase/because/