soundwire: qcom: Check device status before reading devid
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 6 Jul 2022 09:56:44 +0000 (10:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:22:56 +0000 (14:22 +0200)
commitdead7f484a3b518ce590a796081946ca2d14f21e
tree5f4d9d4a4395800ab6da5b6e19d787b8b0a8dc90
parent71bc3b75e941eb51e9fa5df2cd84947045fc4780
soundwire: qcom: Check device status before reading devid

commit aa1262ca66957183ea1fb32a067e145b995f3744 upstream.

As per hardware datasheet its recommended that we check the device
status before reading devid assigned by auto-enumeration.

Without this patch we see SoundWire devices with invalid enumeration
addresses on the bus.

Cc: stable@vger.kernel.org
Fixes: a6e6581942ca ("soundwire: qcom: add auto enumeration support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220706095644.5852-1-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/qcom.c