clk: tests: Add tests for notifiers
authorMaxime Ripard <maxime@cerno.tech>
Mon, 10 Oct 2022 14:47:39 +0000 (16:47 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 11 Oct 2022 03:37:50 +0000 (20:37 -0700)
commit589a2004881f0941ca46146a5de68b3666d1d54a
treecc3d39101420d6769bb39c7e1737f861c109de65
parent096f2a0c6469c8a8e70cfbb83345b7ada2929f13
clk: tests: Add tests for notifiers

We're recently encountered a regression due to the rates reported
through the clk_notifier_data being off when changing parents.

Let's add a test suite and a test to make sure that we do get notified
and with the proper rates.

Suggested-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20221010-rpi-clk-fixes-again-v1-2-d87ba82ac404@cerno.tech
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk_test.c