soundwire: qcom: adjust autoenumeration timeout
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 6 May 2022 08:47:05 +0000 (09:47 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 9 May 2022 06:33:14 +0000 (12:03 +0530)
commit74da272400b46f2e898f115d1b1cd60828766919
tree7e3d9930f2f27f068f46b6d5f712a2cded958d04
parent57ed510b0547988c24af5e0507775e69fd94d7a2
soundwire: qcom: adjust autoenumeration timeout

Currently timeout for autoenumeration during probe and bus reset is set to
2 secs which is really a big value. This can have an adverse effect on
boot time if the slave device is not ready/reset.
This was the case with wcd938x which was not reset yet but we spent 2
secs waiting in the soundwire controller probe. Reduce this time to
1/10 of Hz which should be good enough time to finish autoenumeration
if any slaves are available on the bus.

Reported-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220506084705.18525-1-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c