[PATCH 0/2] clk: kunit: Fix the lockdep warnings

From: Maxime Ripard
Date: Fri Jul 21 2023 - 03:09:49 EST


Hi,

Here's a small series to address the lockdep warning we have when
running the clk kunit tests with lockdep enabled.

For the record, it can be tested with:

$ ./tools/testing/kunit/kunit.py run \
--kunitconfig=drivers/clk \
--cross_compile aarch64-linux-gnu- --arch arm64 \
--kconfig_add CONFIG_DEBUG_KERNEL=y \
--kconfig_add CONFIG_PROVE_LOCKING=y

Let me know what you think,
Maxime

Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
---
Maxime Ripard (2):
clk: Introduce kunit wrapper around clk_hw_init_rate_request
clk: Introduce kunit wrapper around __clk_determine_rate

drivers/clk/clk.c | 51 ++++++++++++++++++++++++++++++++++++++++++++
drivers/clk/clk_test.c | 4 ++--
include/linux/clk-provider.h | 21 ++++++++++++++++++
3 files changed, 74 insertions(+), 2 deletions(-)
---
base-commit: c58c49dd89324b18a812762a2bfa5a0458e4f252
change-id: 20230721-clk-fix-kunit-lockdep-c5e62b221118

Best regards,
--
Maxime Ripard <mripard@xxxxxxxxxx>