soundwire: qcom: update status correctly with mask
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 25 May 2023 13:38:09 +0000 (14:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:23:57 +0000 (10:23 +0200)
commitaccc838fd66aa0c16788d40ff8ac8a3a1a063a2a
tree5f417b1bc06007f28a48f720c31e1e2ca05cbed1
parentcf52320a391a7711c81fcb904ff2d267e6ebf4f4
soundwire: qcom: update status correctly with mask

[ Upstream commit f84d41b2a083b990cbdf70f3b24b6b108b9678ad ]

SoundWire device status can be incorrectly updated without
proper mask, fix this by adding a mask before updating the status.

Fixes: c7d49c76d1d5 ("soundwire: qcom: add support to new interrupts")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230525133812.30841-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