Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: xhci-pci: Set PROBE_PREFER_ASYNCHRONOUS

This driver often takes on the order of 10ms to start, but in some cases
takes more than 100ms. It shouldn't have many cross-device dependencies
to race with, nor racy access to shared state with other drivers, so
this should be a relatively low risk change.

This driver was pinpointed as part of a survey of top slowest initcalls
(i.e., are built in, and probing synchronously) on a lab of ChromeOS
systems.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Link: https://lore.kernel.org/r/20221028184507.v2.2.I5a309231785d3a4e37118a25e84f5caa0136a343@changeid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Brian Norris and committed by
Greg Kroah-Hartman
4c2604a9 ee983463

+4 -3
+4 -3
drivers/usb/host/xhci-pci.c
··· 673 673 /* suspend and resume implemented later */ 674 674 675 675 .shutdown = usb_hcd_pci_shutdown, 676 - #ifdef CONFIG_PM 677 676 .driver = { 678 - .pm = &usb_hcd_pci_pm_ops 679 - }, 677 + #ifdef CONFIG_PM 678 + .pm = &usb_hcd_pci_pm_ops, 680 679 #endif 680 + .probe_type = PROBE_PREFER_ASYNCHRONOUS, 681 + }, 681 682 }; 682 683 683 684 static int __init xhci_pci_init(void)