- * Test that for a clock with a single parent and CLK_SET_RATE_PARENT,
- * if we set a range on both the child clock and its parent, with a
- * smaller range on the child, the rate range returned by
- * clk_get_rate_range() is aggregate of both ranges.
- */
-static void
-clk_test_single_parent_mux_get_range_both_child_smaller(struct kunit *test)
-{
- struct clk_single_parent_ctx *ctx = test->priv;
- struct clk_hw *hw = &ctx->hw;
- struct clk *clk = hw->clk;
- struct clk *parent;
- unsigned long min, max;
- int ret;
-
- parent = clk_get_parent(clk);
- KUNIT_ASSERT_PTR_NE(test, parent, NULL);
-
- ret = clk_set_rate_range(parent, DUMMY_CLOCK_RATE_1, DUMMY_CLOCK_RATE_2);
- KUNIT_ASSERT_EQ(test, ret, 0);
-
- ret = clk_set_rate_range(clk,
- DUMMY_CLOCK_RATE_1 + 1000,
- DUMMY_CLOCK_RATE_2 - 1000);
- KUNIT_ASSERT_EQ(test, ret, 0);
-
- clk_get_rate_range(clk, &min, &max);
- KUNIT_EXPECT_EQ(test, min, DUMMY_CLOCK_RATE_1 + 1000);
- KUNIT_EXPECT_EQ(test, max, DUMMY_CLOCK_RATE_2 - 1000);
-}
-
-/*
- * Test that for a clock with a single parent and CLK_SET_RATE_PARENT,
- * if we set a range on both the child clock and its parent, with a
- * smaller range on the parent, the rate range returned by
- * clk_get_rate_range() is aggregate of both ranges.
- *
- * FIXME: clk_get_rate_range() (and clk_core_get_boundaries() in
- * particular) doesn't take the parent range into account when the clock
- * has CLK_SET_RATE_PARENT.
- */
-static void
-clk_test_single_parent_mux_get_range_both_parent_smaller(struct kunit *test)
-{
- struct clk_single_parent_ctx *ctx = test->priv;
- struct clk_hw *hw = &ctx->hw;
- struct clk *clk = hw->clk;
- struct clk *parent;
- unsigned long min, max;
- int ret;
-
- kunit_skip(test, "This needs to be fixed in the core.");
-
- parent = clk_get_parent(clk);
- KUNIT_ASSERT_PTR_NE(test, parent, NULL);
-
- ret = clk_set_rate_range(parent,
- DUMMY_CLOCK_RATE_1 + 1000,
- DUMMY_CLOCK_RATE_2 - 1000);
- KUNIT_ASSERT_EQ(test, ret, 0);
-
- ret = clk_set_rate_range(clk, DUMMY_CLOCK_RATE_1, DUMMY_CLOCK_RATE_2);
- KUNIT_ASSERT_EQ(test, ret, 0);
-
- clk_get_rate_range(clk, &min, &max);
- KUNIT_EXPECT_EQ(test, min, DUMMY_CLOCK_RATE_1 + 1000);
- KUNIT_EXPECT_EQ(test, min, DUMMY_CLOCK_RATE_2 - 1000);
-}
-
-/*
- * Test that for a clock with a single parent and CLK_SET_RATE_PARENT,
- * if we set a range on the parent clock only, the rate range returned
- * by clk_get_rate_range() on the children clock matches the parent
- * range.
- *
- * FIXME: clk_get_rate_range() (and clk_core_get_boundaries() in
- * particular) doesn't take the parent range into account when the clock
- * has CLK_SET_RATE_PARENT.
- */
-static void
-clk_test_single_parent_mux_get_range_parent_only(struct kunit *test)
-{
- struct clk_single_parent_ctx *ctx = test->priv;
- struct clk_hw *hw = &ctx->hw;
- struct clk *clk = hw->clk;
- struct clk *parent;
- unsigned long min, max;
- int ret;
-
- kunit_skip(test, "This needs to be fixed in the core.");
-
- parent = clk_get_parent(clk);
- KUNIT_ASSERT_PTR_NE(test, parent, NULL);
-
- ret = clk_set_rate_range(parent, DUMMY_CLOCK_RATE_1, DUMMY_CLOCK_RATE_2);
- KUNIT_ASSERT_EQ(test, ret, 0);
-
- clk_get_rate_range(clk, &min, &max);
- KUNIT_EXPECT_EQ(test, min, DUMMY_CLOCK_RATE_1);
- KUNIT_EXPECT_EQ(test, min, DUMMY_CLOCK_RATE_2);
-}
-
-/*