]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: mpi3mr: Make driver probing asynchronous
authorGuixin Liu <kanie@linux.alibaba.com>
Fri, 30 Jan 2026 08:02:07 +0000 (16:02 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 4 Feb 2026 03:19:56 +0000 (22:19 -0500)
Speed up the boot process by using the asynchronous probing feature
supported by the kernel.

Set the PROBE_PREFER_ASYNCHRONOUS flag in the device_driver structure so
that the driver core probes in parallel.

Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://patch.msgid.link/20260130080207.90053-1-kanie@linux.alibaba.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_os.c

index e697ae6b78717449cb1f6fe2ed99e659cf06bd73..8e5abf620718abbf3b8e597b28e30c48d9e10e3f 100644 (file)
@@ -6079,7 +6079,10 @@ static struct pci_driver mpi3mr_pci_driver = {
        .remove = mpi3mr_remove,
        .shutdown = mpi3mr_shutdown,
        .err_handler = &mpi3mr_err_handler,
-       .driver.pm = &mpi3mr_pm_ops,
+       .driver = {
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
+               .pm = &mpi3mr_pm_ops,
+       },
 };
 
 static ssize_t event_counter_show(struct device_driver *dd, char *buf)