]> git.baikalelectronics.ru Git - kernel.git/commit
clk: tests: Add tests for uncached clock
authorMaxime Ripard <maxime@cerno.tech>
Tue, 16 Aug 2022 11:25:13 +0000 (13:25 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 15 Sep 2022 16:30:48 +0000 (09:30 -0700)
commit2c560cc7e70c01a89ca1ab81f755d4ccee1d4729
treeec6699f1b0c8d0f6edf6ca3b14a25343ee37ba70
parentd62c29498df2d9cbf79c182d3a73625600fb5ae5
clk: tests: Add tests for uncached clock

The clock framework supports clocks that can have their rate changed
without the kernel knowing about it using the CLK_GET_RATE_NOCACHE flag.

As its name suggests, this flag turns off the rate caching in the clock
framework, reading out the rate from the hardware any time we need to
read it.

Let's add a couple of tests to make sure it works as intended.

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-9-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