soundwire: qcom: reinit broadcast completion
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 26 Oct 2022 11:02:05 +0000 (12:02 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 28 Oct 2022 11:30:38 +0000 (17:00 +0530)
commitf936fa7a954b262cb3908bbc8f01ba19dfaf9fbf
tree52dc31d0ab3c5c773a94b6acbfbc24a0c70b3166
parent13c30a755847c7e804e1bf755e66e3ff7b7f9367
soundwire: qcom: reinit broadcast completion

For some reason we never reinit the broadcast completion, there is a
danger that broadcast commands could be treated as completed by driver
from previous complete status.
Fix this by reinitializing the completion before sending a broadcast command.

Fixes: ddea6cf7b619 ("soundwire: qcom: update register read/write routine")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20221026110210.6575-2-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c