Re: [PATCH v2] driver core: Check drivers_autoprobe for all added devices

From: Vincent Liu

Date: Tue Oct 14 2025 - 08:10:56 EST


On 14 Oct 2025, at 06:14, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:

> What commit id does this fix?

I am not entirely sure if there is a particular commit that causes this issue,
the device_attach call was added in pci/bus.c 58d9a38f6fac, and then the
device_add was removed in 4f535093cf8f6. At this point I think the
drivers_autoprobe stopped working because driver_attach that’s left in
pci_bus_add_device does not check for that.

The drivers_autoprobe check in base/bus.c has been there a long time
since b8c5cec23d5c.

> What devices cause this to happen today that are seeing this issue?

I am observing this for hot-plugged PCIe devices and VFs.

> Should this be backported to older kernels?

I suppose not since this was not working for a long time?

Thanks,
Vincent