]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: qcom: update status from device id 1
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 16 Sep 2022 13:53:51 +0000 (14:53 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 20 Sep 2022 05:03:13 +0000 (10:33 +0530)
commit570c36bdbce8b8c12ee68f7d27ec5fdd411fdc73
treec2406771ea966934860f00df3f3f5f4bb47aee82
parent70cfb6b7be60bba4f2ad370b26dd0c749e4d41f0
soundwire: qcom: update status from device id 1

By default autoenumeration is enabled on QCom SoundWire controller
which means the core should not be dealing with device 0 w.r.t enumeration.

During Enumeration if SoundWire core sees status[0] as SDW_SLAVE_ATTACHED and
start programming the device id, however reading DEVID registers return zeros
which does not match to any of the slaves in the list and the core attempts
to park this device to Group 13.  This results in adding SoundWire device
with enumeration address 0:0:0:0

Fix this by not passing device 0 status to SoundWire core.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220916135352.19114-1-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/qcom.c