Commit 21a16f0f authored by Guixin Liu's avatar Guixin Liu Committed by Martin K. Petersen
Browse files

scsi: mpi3mr: Make driver probing asynchronous



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: default avatarGuixin Liu <kanie@linux.alibaba.com>
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Link: https://patch.msgid.link/20260130080207.90053-1-kanie@linux.alibaba.com


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent f8ef4418
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)