[PATCH v3 6/6] test: clk: add test for CLK_LAZY_REPARENT

Simon Glass sjg at chromium.org
Wed Feb 4 01:23:09 CET 2026


On Tue, 20 Jan 2026 at 08:07, Yang Xiwen via B4 Relay
<devnull+forbidden405.outlook.com at kernel.org> wrote:
>
> From: Yang Xiwen <forbidden405 at outlook.com>
>
> Add a test for the newly introduced CLK_LAZY_REPARENT feature.
>
> Modify clk_sandbox_ccf driver to register two clocks(i2s and i2s_root)
> in reversed order.
>
> The test function then try to acquire the clocks and asserts that their
> internal states are maintained correctly.
>
> Ensure clk->parent_name is NULL in all "normal" cases so existing
> drivers are not broken by this feature.
>
> Signed-off-by: Yang Xiwen <forbidden405 at outlook.com>
> ---
>  drivers/clk/clk_sandbox_ccf.c | 10 ++++++++++
>  include/sandbox-clk.h         |  2 ++
>  test/dm/clk_ccf.c             | 40 ++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 52 insertions(+)

Reviewed-by: Simon Glass <simon.glass at canonical.com>


More information about the U-Boot mailing list