platform/chrome: cros_ec_lightbar: Set PROBE_PREFER_ASYNCHRONOUS
authorBrian Norris <briannorris@chromium.org>
Tue, 1 Nov 2022 22:22:09 +0000 (15:22 -0700)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 2 Nov 2022 04:28:47 +0000 (12:28 +0800)
commit873ab3e886b52ba3d6ade3c5f3e6a0cff0c8cb12
treecb0041381d44c82f5b218aa9325109d7fe792f84
parent692a68ad7f3c568359b9f18d966628856fd34ff3
platform/chrome: cros_ec_lightbar: Set PROBE_PREFER_ASYNCHRONOUS

This driver takes on the order of 15ms to start on some systems. Even on
systems where there is no lightbar support, it can take a few
milliseconds just to probe the EC for support. 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>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20221101152132.v2.4.I565598102e0bfb03bdf8c090d3bfdf954d026bc5@changeid
drivers/platform/chrome/cros_ec_lightbar.c