]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: bus: use sdw_write_no_pm when setting the bus scale registers
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 22 Jan 2021 07:06:27 +0000 (15:06 +0800)
committerVinod Koul <vkoul@kernel.org>
Sat, 6 Feb 2021 10:24:53 +0000 (15:54 +0530)
commit299e9780b9196bcb15b26dfdccd3244eb072d560
tree3c8f16fa29315f14ff524b84d8c40905eb7fa919
parentb04c975e654cfdea6d691cd403b5a81cce7e593d
soundwire: bus: use sdw_write_no_pm when setting the bus scale registers

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.

This patch fixes the same problem as the previous one, but is split to
make the life of linux-stable maintainers less painful.

Fixes: 29d158f90690 ('soundwire: bus: initialize bus clock base and scale registers')
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-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c