We don't check to make sure the enable_lock is held across
enable/disable and we don't check if the prepare_lock is held
across prepare/unprepare. Add some asserts to catch any future
locking problems.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
static void clk_core_unprepare(struct clk_core *core)
{
+ lockdep_assert_held(&prepare_lock);
+
if (!core)
return;
{
int ret = 0;
+ lockdep_assert_held(&prepare_lock);
+
if (!core)
return 0;
static void clk_core_disable(struct clk_core *core)
{
+ lockdep_assert_held(&enable_lock);
+
if (!core)
return;
{
int ret = 0;
+ lockdep_assert_held(&enable_lock);
+
if (!core)
return 0;