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

From: Vincent Liu

Date: Tue Oct 21 2025 - 08:49:29 EST


> On 14 Oct 2025, at 13:10, Vincent Liu <vincent.liu@xxxxxxxxxxx> wrote:
>
> 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?
>

Are you happy with this reply Greg? Do you want me to update the commit
message to include some of these commit ids?

Thanks,
Vincent