regmap: Hold the regmap lock when allocating and freeing the cache
authorMark Brown <broonie@kernel.org>
Thu, 22 Aug 2024 19:13:36 +0000 (20:13 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 23 Aug 2024 10:03:11 +0000 (11:03 +0100)
commitfd4ebc07b4dff7e1abedf1b7fd477bc04b69ae55
tree659fc832521278ec730f420a7273b8424dcf674d
parentc69bb91c47e840c96ec4e72e7ebd982dd518441e
regmap: Hold the regmap lock when allocating and freeing the cache

For the benefit of the maple tree's lockdep checking hold the lock while
creating and exiting the cache.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240822-b4-regmap-maple-nolock-v1-2-d5e6dbae3396@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache.c
drivers/base/regmap/regmap.c