Re: [PATCH 4/5] pci: enable async shutdown support
From: David Jeffery
Date: Thu Mar 12 2026 - 09:52:17 EST
On Wed, Mar 11, 2026 at 7:09 PM Bjorn Helgaas <helgaas@xxxxxxxxxx> wrote:
>
> In subject, to match history:
>
> PCI: Enable async shutdown support
>
> On Wed, Mar 11, 2026 at 01:12:08PM -0400, David Jeffery wrote:
> > Like its async suspend support, allow pci device shutdown to be performed
> > asynchronously to improve shutdown time.
>
> s/pci/PCI/
> s/improve/reduce/
Sure, I can clean up the wording.
> I like how simple this looks, so I hope it all works out.
>
> BTW, something seems messed up in your post threading. I assume this
> series is supposed to go with the cover letter at
> https://lore.kernel.org/all/20260311170956.9146-1-djeffery@xxxxxxxxxx,
> but the patches don't seem to be replies to the cover letter.
This was from an email issue I should have handled better. For some
reason, send-email hit an error with smtp after sending the cover
letter and failed to send the rest. When I then sent the rest
separately, I failed to consider the threading and didn't think to use
the option to force it to work as a reply to an ID from the already
sent cover letter.
> > drivers/pci/probe.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
> > index bccc7a4bdd79..4d98bab2163d 100644
> > --- a/drivers/pci/probe.c
> > +++ b/drivers/pci/probe.c
> > @@ -1040,6 +1040,7 @@ static int pci_register_host_bridge(struct pci_host_bridge *bridge)
> >
> > bus->bridge = get_device(&bridge->dev);
> > device_enable_async_suspend(bus->bridge);
> > + device_enable_async_shutdown(bus->bridge);
> > pci_set_bus_of_node(bus);
> > pci_set_bus_msi_domain(bus);
> > if (bridge->msi_domain && !dev_get_msi_domain(&bus->dev) &&
> > @@ -2749,6 +2750,7 @@ void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)
> > pci_reassigndev_resource_alignment(dev);
> >
> > pci_init_capabilities(dev);
> > + device_enable_async_shutdown(&dev->dev);
> >
> > /*
> > * Add the device to our list of discovered devices
> > --
> > 2.53.0
> >
>