mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
0cc6578048
Unfortunately the maple tree requires us to explicitly lock it so we need to take the RCU read lock while iterating. When syncing this means that we end up trying to write out register values while holding the RCU read lock which triggers lockdep issues since that is an atomic context but most buses can't be used in atomic context. Pause the iteration and drop the lock for each register we check to avoid this. Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230523-regcache-maple-sync-lock-v1-1-530e4d68dfab@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org> |
||
---|---|---|
.. | ||
internal.h | ||
Kconfig | ||
Makefile | ||
regcache-flat.c | ||
regcache-maple.c | ||
regcache-rbtree.c | ||
regcache.c | ||
regmap-ac97.c | ||
regmap-debugfs.c | ||
regmap-fsi.c | ||
regmap-i2c.c | ||
regmap-i3c.c | ||
regmap-irq.c | ||
regmap-kunit.c | ||
regmap-mdio.c | ||
regmap-mmio.c | ||
regmap-ram.c | ||
regmap-sccb.c | ||
regmap-sdw-mbq.c | ||
regmap-sdw.c | ||
regmap-slimbus.c | ||
regmap-spi-avmm.c | ||
regmap-spi.c | ||
regmap-spmi.c | ||
regmap-w1.c | ||
regmap.c | ||
trace.h |