]> git.dujemihanovic.xyz Git - linux.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)
commit2e9cad1abc7149c5e6aeee7e76a6c363d392da8b
tree52778847be6e5182fb7b61a829da4a415c38611e
parent74933ef22c1c3d3d1456c2f949f1910ce2aab1f1
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