OSDN Git Service

ASoC: rt5682: Prefer async probe
authorDouglas Anderson <dianders@chromium.org>
Fri, 28 Aug 2020 23:20:27 +0000 (16:20 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 1 Sep 2020 13:00:15 +0000 (14:00 +0100)
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>
sound/soc/codecs/rt5682-i2c.c

index 85aba31..6b4e0eb 100644 (file)
@@ -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,