Skip to content

Commit 74da272

Browse files
Srinivas-Kandagatlavinodkoul
authored andcommitted
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>
1 parent 57ed510 commit 74da272

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soundwire/qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
#define SWRM_SPECIAL_CMD_ID 0xF
107107
#define MAX_FREQ_NUM 1
108-
#define TIMEOUT_MS (2 * HZ)
108+
#define TIMEOUT_MS 100
109109
#define QCOM_SWRM_MAX_RD_LEN 0x1
110110
#define QCOM_SDW_MAX_PORTS 14
111111
#define DEFAULT_CLK_FREQ 9600000

0 commit comments

Comments
 (0)