linux_dsm_epyc7002/drivers/base
Bard Liao bf672140d6 regmap: sdw: use _no_pm functions in regmap_read/write
[ Upstream commit d288a5712ef961e16d588bbdb2d846e00b5ef154 ]

sdw_update_slave_status will be invoked when a codec is attached,
and the codec driver will initialize the codec with regmap functions
while the codec device is pm_runtime suspended.

regmap routines currently rely on regular SoundWire IO functions,
which will call pm_runtime_get_sync()/put_autosuspend.

This causes a deadlock where the resume routine waits for an
initialization complete signal that while the initialization complete
can only be reached when the resume completes.

The only solution if we allow regmap functions to be used in resume
operations as well as during codec initialization is to use _no_pm
routines. The duty of making sure the bus is operational needs to be
handled above the regmap level.

Fixes: 7c22ce6e21 ('regmap: Add SoundWire bus support')
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210122070634.12825-6-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:38:15 +01:00
..
firmware_loader
power PM: runtime: Drop pm_runtime_clean_up_links() 2020-11-02 18:14:07 +01:00
regmap regmap: sdw: use _no_pm functions in regmap_read/write 2021-03-04 11:38:15 +01:00
test
arch_topology.c
attribute_container.c
base.h
bus.c
cacheinfo.c
class.c
component.c
container.c
core.c driver core: Extend device_is_dependent() 2021-01-27 11:55:18 +01:00
cpu.c
dd.c drivers core: Free dma_range_map when driver probe failed 2021-01-27 11:55:18 +01:00
devcoredump.c
devres.c
devtmpfs.c
driver.c
firmware.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c
module.c
node.c
pinctrl.c
platform-msi.c
platform.c
property.c
soc.c
swnode.c media: software_node: Fix refcounts in software_node_get_next_child() 2021-03-04 11:37:42 +01:00
syscore.c
topology.c
transport_class.c