forked from luck/tmp_suning_uos_patched
bf672140d6
[ 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:
|
||
---|---|---|
.. | ||
internal.h | ||
Kconfig | ||
Makefile | ||
regcache-flat.c | ||
regcache-lzo.c | ||
regcache-rbtree.c | ||
regcache.c | ||
regmap-ac97.c | ||
regmap-debugfs.c | ||
regmap-i2c.c | ||
regmap-i3c.c | ||
regmap-irq.c | ||
regmap-mmio.c | ||
regmap-sccb.c | ||
regmap-sdw.c | ||
regmap-slimbus.c | ||
regmap-spi-avmm.c | ||
regmap-spi.c | ||
regmap-spmi.c | ||
regmap-w1.c | ||
regmap.c | ||
trace.h |