]> git.baikalelectronics.ru Git - kernel.git/commit
clk: tests: Add some tests for orphan with multiple parents
authorMaxime Ripard <maxime@cerno.tech>
Tue, 16 Aug 2022 11:25:16 +0000 (13:25 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 15 Sep 2022 16:31:01 +0000 (09:31 -0700)
commitf13ad77d215542a59f8335c108cc95c8efa9614b
tree52778847be6e5182fb7b61a829da4a415c38611e
parent375697360a148e8a10e0795675bc776128e0d9e3
clk: tests: Add some tests for orphan with multiple parents

Let's leverage the dummy mux with multiple parents we have to create a
mux whose default parent will never be registered, and thus will always
be orphan by default.

We can then create some tests to make sure that the clock API behaves
properly in such a case, and that the transition to a non-orphan clock
when we change the parent is done properly.

Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com> # imx8mp
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> # exynos4210, meson g12b
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220816112530.1837489-12-maxime@cerno.tech
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk_test.c