]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: bus: use sdw_update_no_pm when initializing a device
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 22 Jan 2021 07:06:26 +0000 (15:06 +0800)
committerVinod Koul <vkoul@kernel.org>
Sat, 6 Feb 2021 10:24:53 +0000 (15:54 +0530)
commit428913688782ac2036338cdc7a91b4fcf2cc13d8
tree8a8edd175d8621e4fa17f16abf9403ebe85624bf
parent9540dd3e55873f0ea08e62cddea906cbae90567d
soundwire: bus: use sdw_update_no_pm when initializing a device

When a Slave device is resumed, it may resume the bus and restart the
enumeration. During that process, we absolutely don't want to call
regular read/write routines which will wait for the resume to
complete, otherwise a deadlock occurs.

Fixes: 13c6e4b37f40 ('soundwire: bus: add PM/no-PM versions of read/write functions')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20210122070634.12825-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c