]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerVinod Koul <vkoul@kernel.org>
Wed, 6 Jul 2022 16:44:51 +0000 (22:14 +0530)
commitf6dbf9580773a57a58d1b6c8c3918b1e9be82f28
treefb208cc3459be66d95ebe6117ccde64131bc146a
parent7c72079c973eb71768ab1a7ee9b4c08b835103de
soundwire: qcom: Check device status before reading devid

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: d281318a1fb0 ("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>
drivers/soundwire/qcom.c