summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5682-i2c.c
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2020-08-29 01:20:27 +0200
committerMark Brown <broonie@kernel.org>2020-09-01 15:00:15 +0200
commit160c174ff6972bb56bf48ac3335297889839e1f1 (patch)
tree84eef6689633bfe5263257edb00231cb511a5e37 /sound/soc/codecs/rt5682-i2c.c
parentASoC: tlv320adcx140: Add digital mic channel enable routing (diff)
downloadlinux-160c174ff6972bb56bf48ac3335297889839e1f1.tar.xz
linux-160c174ff6972bb56bf48ac3335297889839e1f1.zip
ASoC: rt5682: Prefer async probe
The probe of rt5682 is pretty slow. A quick measurement shows that it takes ~650 ms on at least one board. There's no reason to block all other drivers waiting for this probe to finish. Set the flag to allow other drivers to probe while we're probing. Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20200828162005.1.I4f67f494c4f759b0e5c7f487e040dfdcf16e0876@changeid Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682-i2c.c')
-rw-r--r--sound/soc/codecs/rt5682-i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5682-i2c.c b/sound/soc/codecs/rt5682-i2c.c
index 85aba311bdc8..6b4e0eb30c89 100644
--- a/sound/soc/codecs/rt5682-i2c.c
+++ b/sound/soc/codecs/rt5682-i2c.c
@@ -294,6 +294,7 @@ static struct i2c_driver rt5682_i2c_driver = {
.name = "rt5682",
.of_match_table = rt5682_of_match,
.acpi_match_table = rt5682_acpi_match,
+ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
},
.probe = rt5682_i2c_probe,
.shutdown = rt5682_i2c_shutdown,