<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/clk/clk_test.c, branch v6.12.80</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2024-10-16T21:39:18+00:00</updated>
<entry>
<title>clk: test: Fix some memory leaks</title>
<updated>2024-10-16T21:39:18+00:00</updated>
<author>
<name>Jinjie Ruan</name>
<email>ruanjinjie@huawei.com</email>
</author>
<published>2024-10-16T02:26:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6b5cca7868fdd2499384e21279fdab86bfa04997'/>
<id>urn:sha1:6b5cca7868fdd2499384e21279fdab86bfa04997</id>
<content type='text'>
CONFIG_CLK_KUNIT_TEST=y, CONFIG_DEBUG_KMEMLEAK=y
and CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y, the following memory leak occurs.

If the KUNIT_ASSERT_*() fails, the latter (exit() or testcases)
clk_put() or clk_hw_unregister() will fail to release the clk resource
and cause memory leaks, use new clk_hw_register_kunit()
and clk_hw_get_clk_kunit() to automatically release them.

	unreferenced object 0xffffff80c6af5000 (size 512):
	  comm "kunit_try_catch", pid 371, jiffies 4294896001
	  hex dump (first 32 bytes):
	    20 4c c0 86 e1 ff ff ff e0 1a c0 86 e1 ff ff ff   L..............
	    c0 75 e3 c6 80 ff ff ff 00 00 00 00 00 00 00 00  .u..............
	  backtrace (crc 8ca788fa):
	    [&lt;00000000e21852d0&gt;] kmemleak_alloc+0x34/0x40
	    [&lt;000000009c583f7b&gt;] __kmalloc_cache_noprof+0x26c/0x2f4
	    [&lt;00000000d1bc850c&gt;] __clk_register+0x80/0x1ecc
	    [&lt;00000000b08c78c5&gt;] clk_hw_register+0xc4/0x110
	    [&lt;00000000b16d6df8&gt;] clk_multiple_parents_mux_test_init+0x238/0x288
	    [&lt;0000000014a7e804&gt;] kunit_try_run_case+0x10c/0x3ac
	    [&lt;0000000026b41f03&gt;] kunit_generic_run_threadfn_adapter+0x80/0xec
	    [&lt;0000000066619fb8&gt;] kthread+0x2e8/0x374
	    [&lt;00000000a1157f53&gt;] ret_from_fork+0x10/0x20
	unreferenced object 0xffffff80c6e37880 (size 96):
	  comm "kunit_try_catch", pid 371, jiffies 4294896002
	  hex dump (first 32 bytes):
	    00 50 af c6 80 ff ff ff 00 00 00 00 00 00 00 00  .P..............
	    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
	  backtrace (crc b4b766dd):
	    [&lt;00000000e21852d0&gt;] kmemleak_alloc+0x34/0x40
	    [&lt;000000009c583f7b&gt;] __kmalloc_cache_noprof+0x26c/0x2f4
	    [&lt;0000000086e7dd64&gt;] clk_hw_create_clk.part.0.isra.0+0x58/0x2f4
	    [&lt;00000000dcf1ac31&gt;] clk_hw_get_clk+0x8c/0x114
	    [&lt;000000006fab5bfa&gt;] clk_test_multiple_parents_mux_set_range_set_parent_get_rate+0x3c/0xa0
	    [&lt;00000000c97db55a&gt;] kunit_try_run_case+0x13c/0x3ac
	    [&lt;0000000026b41f03&gt;] kunit_generic_run_threadfn_adapter+0x80/0xec
	    [&lt;0000000066619fb8&gt;] kthread+0x2e8/0x374
	    [&lt;00000000a1157f53&gt;] ret_from_fork+0x10/0x20
	unreferenced object 0xffffff80c2b56900 (size 96):
	  comm "kunit_try_catch", pid 395, jiffies 4294896107
	  hex dump (first 32 bytes):
	    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
	    00 00 00 00 00 00 00 00 e0 49 c0 86 e1 ff ff ff  .........I......
	  backtrace (crc 2e59b327):
	    [&lt;00000000e21852d0&gt;] kmemleak_alloc+0x34/0x40
	    [&lt;00000000c6c715a8&gt;] __kmalloc_noprof+0x2bc/0x3c0
	    [&lt;00000000f04a7951&gt;] __clk_register+0x70c/0x1ecc
	    [&lt;00000000b08c78c5&gt;] clk_hw_register+0xc4/0x110
	    [&lt;00000000cafa9563&gt;] clk_orphan_transparent_multiple_parent_mux_test_init+0x1a8/0x1dc
	    [&lt;0000000014a7e804&gt;] kunit_try_run_case+0x10c/0x3ac
	    [&lt;0000000026b41f03&gt;] kunit_generic_run_threadfn_adapter+0x80/0xec
	    [&lt;0000000066619fb8&gt;] kthread+0x2e8/0x374
	    [&lt;00000000a1157f53&gt;] ret_from_fork+0x10/0x20
	unreferenced object 0xffffff80c87c9400 (size 512):
	  comm "kunit_try_catch", pid 483, jiffies 4294896907
	  hex dump (first 32 bytes):
	    a0 44 c0 86 e1 ff ff ff e0 1a c0 86 e1 ff ff ff  .D..............
	    20 05 a8 c8 80 ff ff ff 00 00 00 00 00 00 00 00   ...............
	  backtrace (crc c25b43fb):
	    [&lt;00000000e21852d0&gt;] kmemleak_alloc+0x34/0x40
	    [&lt;000000009c583f7b&gt;] __kmalloc_cache_noprof+0x26c/0x2f4
	    [&lt;00000000d1bc850c&gt;] __clk_register+0x80/0x1ecc
	    [&lt;00000000b08c78c5&gt;] clk_hw_register+0xc4/0x110
	    [&lt;000000002688be48&gt;] clk_single_parent_mux_test_init+0x1a0/0x1d4
	    [&lt;0000000014a7e804&gt;] kunit_try_run_case+0x10c/0x3ac
	    [&lt;0000000026b41f03&gt;] kunit_generic_run_threadfn_adapter+0x80/0xec
	    [&lt;0000000066619fb8&gt;] kthread+0x2e8/0x374
	    [&lt;00000000a1157f53&gt;] ret_from_fork+0x10/0x20
	unreferenced object 0xffffff80c6dd2380 (size 96):
	  comm "kunit_try_catch", pid 483, jiffies 4294896908
	  hex dump (first 32 bytes):
	    00 94 7c c8 80 ff ff ff 00 00 00 00 00 00 00 00  ..|.............
	    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
	  backtrace (crc 4401212):
	    [&lt;00000000e21852d0&gt;] kmemleak_alloc+0x34/0x40
	    [&lt;000000009c583f7b&gt;] __kmalloc_cache_noprof+0x26c/0x2f4
	    [&lt;0000000086e7dd64&gt;] clk_hw_create_clk.part.0.isra.0+0x58/0x2f4
	    [&lt;00000000dcf1ac31&gt;] clk_hw_get_clk+0x8c/0x114
	    [&lt;0000000063eb2c90&gt;] clk_test_single_parent_mux_set_range_disjoint_child_last+0x3c/0xa0
	    [&lt;00000000c97db55a&gt;] kunit_try_run_case+0x13c/0x3ac
	    [&lt;0000000026b41f03&gt;] kunit_generic_run_threadfn_adapter+0x80/0xec
	    [&lt;0000000066619fb8&gt;] kthread+0x2e8/0x374
	    [&lt;00000000a1157f53&gt;] ret_from_fork+0x10/0x20
	......

Fixes: 02cdeace1e1e ("clk: tests: Add tests for single parent mux")
Fixes: 2e9cad1abc71 ("clk: tests: Add some tests for orphan with multiple parents")
Fixes: 433fb8a611ca ("clk: tests: Add missing test case for ranges")
Signed-off-by: Jinjie Ruan &lt;ruanjinjie@huawei.com&gt;
Link: https://lore.kernel.org/r/20241016022658.2131826-1-ruanjinjie@huawei.com
Reviewed-by: Maxime Ripard &lt;mripard@kernel.org&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: Add KUnit tests for clks registered with struct clk_parent_data</title>
<updated>2024-07-29T22:33:13+00:00</updated>
<author>
<name>Stephen Boyd</name>
<email>sboyd@kernel.org</email>
</author>
<published>2024-07-18T21:05:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=274aff8711b2e77c27bbda0ddc24caa39f154bfa'/>
<id>urn:sha1:274aff8711b2e77c27bbda0ddc24caa39f154bfa</id>
<content type='text'>
Test that clks registered with 'struct clk_parent_data' work as
intended and can find their parents.

Cc: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
Cc: Brendan Higgins &lt;brendan.higgins@linux.dev&gt;
Reviewed-by: David Gow &lt;davidgow@google.com&gt;
Cc: Rae Moar &lt;rmoar@google.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Link: https://lore.kernel.org/r/20240718210513.3801024-9-sboyd@kernel.org
</content>
</entry>
<entry>
<title>clk: test: add missing MODULE_DESCRIPTION() macros</title>
<updated>2024-06-03T22:46:46+00:00</updated>
<author>
<name>Jeff Johnson</name>
<email>quic_jjohnson@quicinc.com</email>
</author>
<published>2024-06-02T15:38:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=06abd441c0c100aa0b52ce403862e5ae958bf94b'/>
<id>urn:sha1:06abd441c0c100aa0b52ce403862e5ae958bf94b</id>
<content type='text'>
make allmodconfig &amp;&amp; make W=1 C=1 reports:
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/clk/clk_test.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/clk/clk-gate_test.o
WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/clk/clk-fractional-divider_test.o

Add the missing invocations of the MODULE_DESCRIPTION() macro.

Signed-off-by: Jeff Johnson &lt;quic_jjohnson@quicinc.com&gt;
Link: https://lore.kernel.org/r/20240602-md-clk-test-v1-1-a6afd4793337@quicinc.com
[sboyd@kernel.org: Reword header and description]
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: Parameterize clk_leaf_mux_set_rate_parent</title>
<updated>2023-10-10T03:08:25+00:00</updated>
<author>
<name>Stephen Boyd</name>
<email>sboyd@kernel.org</email>
</author>
<published>2023-09-12T17:55:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=831187c6946f29ba8309d386d5ca466eec8b9f79'/>
<id>urn:sha1:831187c6946f29ba8309d386d5ca466eec8b9f79</id>
<content type='text'>
Transform the existing clk_leaf_mux_set_rate_parent test into a
parameterized test that calls the various determine rate APIs that exist
for clk providers. This ensures that whatever determine rate API is used
by a clk provider will return the correct parent in the best_parent_hw
pointer of the clk_rate_request because clk_rate_requests are forwarded
properly.

Cc: Guenter Roeck &lt;linux@roeck-us.net&gt;
Cc: Maxime Ripard &lt;mripard@kernel.org&gt;
Link: https://lore.kernel.org/r/20230912175534.2427862-3-sboyd@kernel.org
Acked-by: Maxime Ripard &lt;mripard@kernel.org&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: Drive clk_leaf_mux_set_rate_parent test from clk_ops</title>
<updated>2023-10-10T03:08:12+00:00</updated>
<author>
<name>Stephen Boyd</name>
<email>sboyd@kernel.org</email>
</author>
<published>2023-09-12T17:55:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=096b256c9a786b42199fcb63ef5d9f65c312a3f6'/>
<id>urn:sha1:096b256c9a786b42199fcb63ef5d9f65c312a3f6</id>
<content type='text'>
Running this kunit test with lockdep enabled leads to warning splats
about calling clk provider APIs without the clk_prepare lock held.  I
proposed adding a wrapper around these APIs to grab the prepare lock so
we can call them from anywhere, and Maxime implemented that approach[1],
but it didn't look great. That's because we had to make more kunit
testing APIs just to call code from a place that isn't a clk provider
when the prepare lock isn't held.

Instead of doing that, let's implement a determine_rate clk_op for a new
leaf clk that is the child of the existing leaf clk. We can call
__clk_determine_rate() on the existing leaf clk from there, and stash
away the clk_rate_request struct to check once the clk_op returns. Drive
that clk_op by calling clk_round_rate() to keep things similar to how it
was before (i.e. nothing actually changes rate, just the new rate is
determined). This silences the warning by driving the test from a
clk_op where we know the prepare lock is held.

While looking at this in more detail, it was determined that the code we
intended to test in commit 262ca38f4b6e ("clk: Stop forwarding
clk_rate_requests to the parent") wasn't actually tested. The call to
__clk_determine_rate() wasn't actually getting to the newly introduced
code under the CLK_SET_RATE_PARENT if condition in
clk_core_round_rate_nolock() because the parent clk (the mux) could
round rates. We introduce a new leaf and make sure the parent of that
clk has no clk_ops so that we can be certain that the
CLK_SET_RATE_PARENT condition in clk_core_round_rate_nolock() is
evaluated.

Reported-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Closes: https://lore.kernel.org/linux-clk/2b594e50-2bbf-4a2d-88e6-49fc39f3957a@roeck-us.net/
Reported-by: kernel test robot &lt;yujie.liu@intel.com&gt;
Closes: https://lore.kernel.org/oe-lkp/202301310919.b9d56ee3-yujie.liu@intel.com
Cc: Maxime Ripard &lt;mripard@kernel.org&gt;
Link: https://lore.kernel.org/r/20230721-clk-fix-kunit-lockdep-v1-0-32cdba4c8fc1@kernel.org [1]
Fixes: 262ca38f4b6e ("clk: Stop forwarding clk_rate_requests to the parent")
Link: https://lore.kernel.org/r/20230912175534.2427862-2-sboyd@kernel.org
Acked-by: Maxime Ripard &lt;mripard@kernel.org&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: test: Add a determine_rate hook</title>
<updated>2023-06-09T01:39:25+00:00</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime@cerno.tech</email>
</author>
<published>2023-05-05T11:25:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=aebddfe2dfaf1100cfdeb56783384868786bca05'/>
<id>urn:sha1:aebddfe2dfaf1100cfdeb56783384868786bca05</id>
<content type='text'>
The single parent clock in our kunit tests implements a mux with a
set_parent hook, but doesn't provide a determine_rate implementation.

This is not entirely unexpected, since its whole purpose it to have a
single parent. When determine_rate is missing, and since
CLK_SET_RATE_PARENT is set for all its instances, the default behaviour
of the framework will be to forward it to the current parent.

This is totally fine as far as the tests are concerned, but we'll start
to mandate a determine_rate implementation when set_parent is set, so
let's fill it with __clk_mux_determine_rate() which will have the same
behavior.

Signed-off-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
Link: https://lore.kernel.org/r/20221018-clk-range-checks-fixes-v4-7-971d5077e7d2@cerno.tech
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: Introduce clk_hw_determine_rate_no_reparent()</title>
<updated>2023-06-09T01:39:25+00:00</updated>
<author>
<name>Stephen Boyd</name>
<email>sboyd@kernel.org</email>
</author>
<published>2023-05-05T11:25:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=33b70fbc4f815f0acb327fa506c988ef25cd943d'/>
<id>urn:sha1:33b70fbc4f815f0acb327fa506c988ef25cd943d</id>
<content type='text'>
Some clock drivers do not want to allow any reparenting on a given
clock, but usually do so by not providing any determine_rate
implementation.

Whenever we call clk_round_rate() or clk_set_rate(), this leads to
clk_core_can_round() returning false and thus the rest of the function
either forwarding the rate request to its current parent if
CLK_SET_RATE_PARENT is set, or just returning the current clock rate.

This behaviour happens implicitly, and as we move forward to making a
determine_rate implementation required for muxes, we need some way to
explicitly opt-in for that behaviour.

Fortunately, this is exactly what the clk_core_determine_rate_no_reparent()
function is doing, so we can simply make it available to drivers.

Cc: Abel Vesa &lt;abelvesa@kernel.org&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Cc: Alexandre Torgue &lt;alexandre.torgue@foss.st.com&gt;
Cc: "Andreas Färber" &lt;afaerber@suse.de&gt;
Cc: AngeloGioacchino Del Regno &lt;angelogioacchino.delregno@collabora.com&gt;
Cc: Baolin Wang &lt;baolin.wang@linux.alibaba.com&gt;
Cc: Charles Keepax &lt;ckeepax@opensource.cirrus.com&gt;
Cc: Chen-Yu Tsai &lt;wens@csie.org&gt;
Cc: Chen-Yu Tsai &lt;wenst@chromium.org&gt;
Cc: Chunyan Zhang &lt;zhang.lyra@gmail.com&gt;
Cc: Claudiu Beznea &lt;claudiu.beznea@microchip.com&gt;
Cc: Daniel Vetter &lt;daniel@ffwll.ch&gt;
Cc: David Airlie &lt;airlied@gmail.com&gt;
Cc: David Lechner &lt;david@lechnology.com&gt;
Cc: Dinh Nguyen &lt;dinguyen@kernel.org&gt;
Cc: Fabio Estevam &lt;festevam@gmail.com&gt;
Cc: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Cc: Jaroslav Kysela &lt;perex@perex.cz&gt;
Cc: Jernej Skrabec &lt;jernej.skrabec@gmail.com&gt;
Cc: Jonathan Hunter &lt;jonathanh@nvidia.com&gt;
Cc: Kishon Vijay Abraham I &lt;kishon@kernel.org&gt;
Cc: Liam Girdwood &lt;lgirdwood@gmail.com&gt;
Cc: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Cc: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Cc: Manivannan Sadhasivam &lt;mani@kernel.org&gt;
Cc: Mark Brown &lt;broonie@kernel.org&gt;
Cc: Markus Schneider-Pargmann &lt;msp@baylibre.com&gt;
Cc: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
Cc: Maxime Coquelin &lt;mcoquelin.stm32@gmail.com&gt;
Cc: Mikko Perttunen &lt;mperttunen@nvidia.com&gt;
Cc: Miles Chen &lt;miles.chen@mediatek.com&gt;
Cc: Nicolas Ferre &lt;nicolas.ferre@microchip.com&gt;
Cc: Orson Zhai &lt;orsonzhai@gmail.com&gt;
Cc: Paul Cercueil &lt;paul@crapouillou.net&gt;
Cc: Peng Fan &lt;peng.fan@nxp.com&gt;
Cc: Peter De Schrijver &lt;pdeschrijver@nvidia.com&gt;
Cc: Prashant Gaikwad &lt;pgaikwad@nvidia.com&gt;
Cc: Richard Fitzgerald &lt;rf@opensource.cirrus.com&gt;
Cc: Samuel Holland &lt;samuel@sholland.org&gt;
Cc: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Cc: Sekhar Nori &lt;nsekhar@ti.com&gt;
Cc: Shawn Guo &lt;shawnguo@kernel.org&gt;
Cc: Takashi Iwai &lt;tiwai@suse.com&gt;
Cc: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Cc: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
Cc: Vinod Koul &lt;vkoul@kernel.org&gt;
Cc: dri-devel@lists.freedesktop.org
Cc: linux-actions@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mips@vger.kernel.org
Cc: linux-phy@lists.infradead.org
Cc: linux-renesas-soc@vger.kernel.org
Cc: linux-rtc@vger.kernel.org
Cc: linux-stm32@st-md-mailman.stormreply.com
Cc: linux-sunxi@lists.linux.dev
Cc: linux-tegra@vger.kernel.org
Cc: NXP Linux Team &lt;linux-imx@nxp.com&gt;
Cc: patches@opensource.cirrus.com
Cc: Pengutronix Kernel Team &lt;kernel@pengutronix.de&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
Link: https://lore.kernel.org/r/20221018-clk-range-checks-fixes-v4-4-971d5077e7d2@cerno.tech
| Reported-by: kernel test robot &lt;lkp@intel.com&gt;:
</content>
</entry>
<entry>
<title>clk: test: Fix type sign of rounded rate variables</title>
<updated>2023-06-09T01:01:05+00:00</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime@cerno.tech</email>
</author>
<published>2023-05-05T11:25:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9633b4c17b734de8308461182facc931042824b7'/>
<id>urn:sha1:9633b4c17b734de8308461182facc931042824b7</id>
<content type='text'>
clk_round_rate() may return a negative error code, but most of the
variables we defined to store its returned value are unsigned.

This obviously leads to issues on error.

Signed-off-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
Link: https://lore.kernel.org/r/20221018-clk-range-checks-fixes-v4-2-971d5077e7d2@cerno.tech
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: tests: Add tests for notifiers</title>
<updated>2022-10-11T03:37:50+00:00</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime@cerno.tech</email>
</author>
<published>2022-10-10T14:47:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=589a2004881f0941ca46146a5de68b3666d1d54a'/>
<id>urn:sha1:589a2004881f0941ca46146a5de68b3666d1d54a</id>
<content type='text'>
We're recently encountered a regression due to the rates reported
through the clk_notifier_data being off when changing parents.

Let's add a test suite and a test to make sure that we do get notified
and with the proper rates.

Suggested-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
Link: https://lore.kernel.org/r/20221010-rpi-clk-fixes-again-v1-2-d87ba82ac404@cerno.tech
Tested-by: Marek Szyprowski &lt;m.szyprowski@samsung.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: tests: Add missing test case for ranges</title>
<updated>2022-09-15T16:32:34+00:00</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime@cerno.tech</email>
</author>
<published>2022-08-16T11:25:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=433fb8a611ca2a32112668225beabda2302c9634'/>
<id>urn:sha1:433fb8a611ca2a32112668225beabda2302c9634</id>
<content type='text'>
Let's add a test on the rate range after a reparenting. This fails for
now, but it's worth having it to document the corner cases we don't
support yet.

Signed-off-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
Link: https://lore.kernel.org/r/20220816112530.1837489-26-maxime@cerno.tech
Tested-by: Naresh Kamboju &lt;naresh.kamboju@linaro.org&gt;
Tested-by: Linux Kernel Functional Testing &lt;lkft@linaro.org&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
</feed>
