usb: ehci-pci: Set PROBE_PREFER_ASYNCHRONOUS
authorBrian Norris <briannorris@chromium.org>
Sat, 29 Oct 2022 01:45:34 +0000 (18:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Nov 2022 11:36:19 +0000 (12:36 +0100)
commitee9834636f9b07fe1dcf3fffbb325318cdb267d5
treef3fd2ddb664933bf9ce4509946013b1ef92468dc
parent4567d1a97f5290cb895a564feff0a5c770d6c332
usb: ehci-pci: Set PROBE_PREFER_ASYNCHRONOUS

This driver often takes on the order of 8ms to start, but every little
bit counts. 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>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20221028184507.v2.1.I9a5353f81d1509f85f3a04f0cdc9099f6fe60811@changeid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-pci.c