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>
.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)