soundwire: qcom: reinit broadcast completion
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 26 Oct 2022 11:02:05 +0000 (12:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Nov 2022 08:58:14 +0000 (09:58 +0100)
commitae4dad2e537420e6df0010dd035df246f6e12a7f
tree77cf8372a2a19f6fa46903a0139e70ae951281e5
parent38c9fa2cc6bf4b6e1a74057aef8b5cffd23d3264
soundwire: qcom: reinit broadcast completion

[ Upstream commit f936fa7a954b262cb3908bbc8f01ba19dfaf9fbf ]

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