iio: sx9310: Prefer async probe
authorDouglas Anderson <dianders@chromium.org>
Tue, 1 Sep 2020 15:19:43 +0000 (08:19 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Sep 2020 15:22:03 +0000 (16:22 +0100)
commit52f5b683e50a9bf106c07196ffadda58f199678b
tree086c1ddaa4580341ac2bba538bbcf21361a35456
parentaa06b6f4d8e36fa9f183b4f7a44d5c63acac33e2
iio: sx9310: Prefer async probe

On one board I found that:
  probe of 5-0028 returned 1 after 259547 usecs

While some of this time is attributable to the pile of i2c transfers
that we do at probe time, the lion's share (over 200 ms) is sitting
waiting in the polling loop in sx9310_init_compensation() waiting for
the hardware to indicate that it's done.

There's no reason to block probe of all other devices on our probe.
Turn on async probe.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Daniel Campello <campello@chromium.org>
Link: https://lore.kernel.org/r/20200901081920.v2.1.Id02b2f451b3eed71ddd580f4b8b44b3e33e84970@changeid
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/sx9310.c