]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: qcom: adjust autoenumeration timeout
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 6 May 2022 08:47:05 +0000 (09:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:21 +0000 (18:36 +0200)
commit1cb06fadc613c7a113b1e311a0fda6de5a91cedb
treea94e36c472403b98bfab075b8c2dc3fe69cbde3f
parentfd11fde660c6b900717a77188e9b2804753d8c4b
soundwire: qcom: adjust autoenumeration timeout

[ Upstream commit 5dd7f8181fa1f877755d057627d2a2cdfafed754 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soundwire/qcom.c