<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/clk/sophgo, branch linux-7.1.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.1.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.1.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2026-01-22T15:48:26+00:00</updated>
<entry>
<title>clk: sophgo: sg2042-clkgen: convert from divider_round_rate() to divider_determine_rate()</title>
<updated>2026-01-22T15:48:26+00:00</updated>
<author>
<name>Brian Masney</name>
<email>bmasney@redhat.com</email>
</author>
<published>2026-01-08T21:16:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=77b04dc19693510ce8ed1c6eda5f5b833e208816'/>
<id>urn:sha1:77b04dc19693510ce8ed1c6eda5f5b833e208816</id>
<content type='text'>
The divider_round_rate() function is now deprecated, so let's migrate
to divider_determine_rate() instead so that this deprecated API can be
removed.

Note that when the main function itself was migrated to use
determine_rate, this was mistakenly converted to:

    req-&gt;rate = divider_round_rate(...)

This is invalid in the case when an error occurs since it can set the
rate to a negative value.

Note that this commit also removes a debugging message that's not really
needed.

Fixes: 9a3b6993613d ("clk: sophgo: sg2042-clkgen: convert from round_rate() to determine_rate()")
Tested-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Reviewed-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Signed-off-by: Brian Masney &lt;bmasney@redhat.com&gt;
</content>
</entry>
<entry>
<title>clk: sophgo: cv18xx-ip: convert from divider_round_rate() to divider_determine_rate()</title>
<updated>2026-01-22T15:48:24+00:00</updated>
<author>
<name>Brian Masney</name>
<email>bmasney@redhat.com</email>
</author>
<published>2026-01-08T21:16:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a641384bb03bc2c85bd51dc60d40e9f15aeaa446'/>
<id>urn:sha1:a641384bb03bc2c85bd51dc60d40e9f15aeaa446</id>
<content type='text'>
The divider_round_rate() function is now deprecated, so let's migrate
to divider_determine_rate() instead so that this deprecated API can be
removed. Also go ahead and convert all of the driver from round rate
type to determine rate that accepts a 'struct clk_rate_request' to
simplify the overall driver code.

Signed-off-by: Brian Masney &lt;bmasney@redhat.com&gt;
</content>
</entry>
<entry>
<title>clk: sophgo: cv18xx-ip: convert from round_rate() to determine_rate()</title>
<updated>2025-09-08T13:41:28+00:00</updated>
<author>
<name>Brian Masney</name>
<email>bmasney@redhat.com</email>
</author>
<published>2025-08-11T15:18:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=897c23b906cdc271380cef55ea81301f0dd70593'/>
<id>urn:sha1:897c23b906cdc271380cef55ea81301f0dd70593</id>
<content type='text'>
The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Alexander Sverdlin &lt;alexander.sverdlin@gmail.com&gt;
Signed-off-by: Brian Masney &lt;bmasney@redhat.com&gt;
</content>
</entry>
<entry>
<title>clk: sophgo: sg2042-pll: remove round_rate() in favor of determine_rate()</title>
<updated>2025-09-08T13:41:25+00:00</updated>
<author>
<name>Brian Masney</name>
<email>bmasney@redhat.com</email>
</author>
<published>2025-08-29T00:38:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d4c515a21b238844cfc3108405bbb0f210cf6d3b'/>
<id>urn:sha1:d4c515a21b238844cfc3108405bbb0f210cf6d3b</id>
<content type='text'>
This driver implements both the determine_rate() and round_rate() clk
ops, and the round_rate() clk ops is deprecated. When both are defined,
clk_core_determine_round_nolock() from the clk core will only use the
determine_rate() clk ops, so let's remove the round_rate() clk ops since
it's unused.

The implementation of sg2042_clk_pll_determine_rate() calls
sg2042_clk_pll_round_rate(), so this folds the two into a single
function.

Reviewed-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Tested-by: Chen Wang &lt;unicorn_wang@outlook.com&gt; # Pioneerbox
Signed-off-by: Brian Masney &lt;bmasney@redhat.com&gt;
</content>
</entry>
<entry>
<title>clk: sophgo: sg2042-clkgen: convert from round_rate() to determine_rate()</title>
<updated>2025-09-08T13:41:25+00:00</updated>
<author>
<name>Brian Masney</name>
<email>bmasney@redhat.com</email>
</author>
<published>2025-08-29T00:38:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9a3b6993613d3fac3b29e44688b865972ff732fd'/>
<id>urn:sha1:9a3b6993613d3fac3b29e44688b865972ff732fd</id>
<content type='text'>
The round_rate() clk ops is deprecated, so migrate this driver from
round_rate() to determine_rate() using the Coccinelle semantic patch
on the cover letter of this series.

Reviewed-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Tested-by: Chen Wang &lt;unicorn_wang@outlook.com&gt; # Pioneerbox
Signed-off-by: Brian Masney &lt;bmasney@redhat.com&gt;
</content>
</entry>
<entry>
<title>clk: Fix typos</title>
<updated>2025-07-27T06:49:18+00:00</updated>
<author>
<name>Bjorn Helgaas</name>
<email>bhelgaas@google.com</email>
</author>
<published>2025-07-23T20:38:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=264200cc3a87d5c53bfa817227624fa2bae6b2c3'/>
<id>urn:sha1:264200cc3a87d5c53bfa817227624fa2bae6b2c3</id>
<content type='text'>
Fix typos, mostly in comments except CLKGATE_SEPERATED_* (definition and
uses updated).

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Link: https://lore.kernel.org/r/20250723203819.2910289-1-helgaas@kernel.org
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: sophgo: Use div64* for 64-by-32 division to simplify</title>
<updated>2025-06-19T23:53:49+00:00</updated>
<author>
<name>Pei Xiao</name>
<email>xiaopei01@kylinos.cn</email>
</author>
<published>2025-04-07T03:21:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2f80dfab862847b762206c6596e1d7ea281830d8'/>
<id>urn:sha1:2f80dfab862847b762206c6596e1d7ea281830d8</id>
<content type='text'>
Fixes Coccinelle/coccicheck warnings reported by do_div.cocci.

cocci warnings:
    drivers/clk/sophgo/clk-sg2042-pll.c:217:1-7: WARNING:
    do_div() does a 64-by-32 division, please consider using div64_ul
    instead.

    drivers/clk/sophgo/clk-sg2042-pll.c:160:1-7: WARNING:
    do_div() does a 64-by-32 division, please consider using div64_u64
    instead.

replace do_div() with div64_*() which doesn't implicitly cast the divisor.

Signed-off-by: Pei Xiao &lt;xiaopei01@kylinos.cn&gt;
Link: https://lore.kernel.org/r/tencent_D5D35C992B70843CF70F5533E49717D24906@qq.com
Reviewed-by: Inochi Amaoto &lt;inochiama@gmail.com&gt;
Reviewed-by: Chen Wang &lt;wangchen20@iscas.ac.cn&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: sophgo: Add clock controller support for SG2044 SoC</title>
<updated>2025-05-07T00:00:09+00:00</updated>
<author>
<name>Inochi Amaoto</name>
<email>inochiama@gmail.com</email>
</author>
<published>2025-04-18T02:03:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=41b08610dd262dc4a5e1eff993b2d21eab8b8ba3'/>
<id>urn:sha1:41b08610dd262dc4a5e1eff993b2d21eab8b8ba3</id>
<content type='text'>
Add clock driver and clock definition for SG2044 SoC.

Reviewed-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Link: https://lore.kernel.org/r/20250418020325.421257-6-inochiama@gmail.com
Signed-off-by: Inochi Amaoto &lt;inochiama@gmail.com&gt;
Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Signed-off-by: Chen Wang &lt;wangchen20@iscas.ac.cn&gt;
</content>
</entry>
<entry>
<title>clk: sophgo: Add PLL clock controller support for SG2044 SoC</title>
<updated>2025-05-06T23:44:30+00:00</updated>
<author>
<name>Inochi Amaoto</name>
<email>inochiama@gmail.com</email>
</author>
<published>2025-04-18T02:03:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ff5240793b0484187a836f6e1b7f0e376e0776ed'/>
<id>urn:sha1:ff5240793b0484187a836f6e1b7f0e376e0776ed</id>
<content type='text'>
Add PLL clock driver and clock definition for SG2044 SoC.

Link: https://lore.kernel.org/r/20250418020325.421257-5-inochiama@gmail.com
Signed-off-by: Inochi Amaoto &lt;inochiama@gmail.com&gt;
Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Signed-off-by: Chen Wang &lt;wangchen20@iscas.ac.cn&gt;
</content>
</entry>
<entry>
<title>clk: sophgo: Add support for newly added precise compatible</title>
<updated>2025-05-06T23:42:35+00:00</updated>
<author>
<name>Inochi Amaoto</name>
<email>inochiama@gmail.com</email>
</author>
<published>2025-05-04T10:45:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=dd8bbae9fefeead76f20cd410a5a8299fcbad220'/>
<id>urn:sha1:dd8bbae9fefeead76f20cd410a5a8299fcbad220</id>
<content type='text'>
Add of device id definition for newly added precise compatible.

Reviewed-by: Alexander Sverdlin &lt;alexander.sverdlin@gmail.com&gt;
Link: https://lore.kernel.org/r/20250504104553.1447819-3-inochiama@gmail.com
Signed-off-by: Inochi Amaoto &lt;inochiama@gmail.com&gt;
Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Signed-off-by: Chen Wang &lt;wangchen20@iscas.ac.cn&gt;
</content>
</entry>
</feed>
