]> git.hungrycats.org Git - linux/commit
soundwire: Fix acquiring bus lock twice during master release
authorSanyog Kale <sanyog.r.kale@intel.com>
Fri, 27 Jul 2018 09:14:10 +0000 (14:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Oct 2018 07:47:05 +0000 (09:47 +0200)
commit1228a75335e09243cac5e5cfdfe3a02234c6baf8
treed7bbfb339e983a4970f3b2b0aea1ea3c4619ee1b
parentad9107d7e1c77ef4676eebc64333dcdf155ae8b2
soundwire: Fix acquiring bus lock twice during master release

[ Upstream commit 8d6ccf5cebbc7ed1dee9986e36853a78dfb64084 ]

As part of sdw_stream_remove_master(), sdw_stream_remove_slave() is called
which results in bus lock being acquired twice.

So, fix it by performing specific Slave remove operations in
sdw_release_master_stream() instead of calling sdw_stream_remove_slave().

Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com>
Signed-off-by: Shreyas NC <shreyas.nc@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/stream.c