]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soundwire: bus: Fix device found flag correctly
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 9 Mar 2021 10:48:16 +0000 (10:48 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 22 Mar 2021 12:15:40 +0000 (17:45 +0530)
commitfde5d7f27108a444aa288ab9dfaa0a0c25e80b6d
treefad675dac82764627e332486846b139e0ca7cf26
parentcde00ed6e9dee0384c112420b39b2fd4201ef42e
soundwire: bus: Fix device found flag correctly

found flag is used to indicate SoundWire devices that are
both enumerated on the bus and available in the device list.
However this flag is not reset correctly after one iteration,
This could miss some of the devices that are enumerated on the
bus but not in device list. So reset this correctly to fix this issue!

Fixes: d52d7a1be02c ("soundwire: Add Slave status handling helpers")
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/20210309104816.20350-1-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c