]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit71837203bdb2a17d4dbc96d2f13d2abcda0ff837
treecc3d39101420d6769bb39c7e1737f861c109de65
parentda68d5a6acfeed67dd186ba488a4224151a3f584
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