<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/clk/meson, branch linux-4.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.16.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-05-25T14:46:17Z</updated>
<entry>
<title>clk: meson: axg: add the fractional part of the fixed_pll</title>
<updated>2018-05-25T14:46:17Z</updated>
<author>
<name>Jerome Brunet</name>
</author>
<published>2018-01-19T15:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ede9f3e4b247b3cff5f260c10a860e87cf19109'/>
<id>urn:sha1:3ede9f3e4b247b3cff5f260c10a860e87cf19109</id>
<content type='text'>
[ Upstream commit 6b71aceceb09918daf37a40a1221077599040be3 ]

The fixed_pll also has a fractional part. On axg s400 board, without
this parameter, the calculated rate is off by ~8Mhz (0,4%). The fixed_pll
being the root of the peripheral clock tree, this error is propagated to
the rest of the clocks

Adding the definition of the parameter fixes the problem

Fixes: 78b4af312f91 ("clk: meson-axg: add clock controller drivers")
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>clk: meson: axg: fix the od shift of the sys_pll</title>
<updated>2018-05-25T14:46:16Z</updated>
<author>
<name>Yixun Lan</name>
</author>
<published>2018-01-19T02:09:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e3f208839a172f1c18335ac28de6684f1fb85066'/>
<id>urn:sha1:e3f208839a172f1c18335ac28de6684f1fb85066</id>
<content type='text'>
[ Upstream commit 2fa9b361e500a0e092a9525afbd6a3a363ffa5f0 ]

According to the datasheet, the od shift of sys_pll is actually 16.

Fixes: 78b4af312f91 ('clk: meson-axg: add clock controller drivers')
Signed-off-by: Yixun Lan &lt;yixun.lan@amlogic.com&gt;
[fixed commit message]
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>clk: meson-axg: fix potential NULL dereference in axg_clkc_probe()</title>
<updated>2018-01-10T21:24:36Z</updated>
<author>
<name>weiyongjun (A)</name>
</author>
<published>2018-01-05T01:50:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d548d80384732bad74c3046329e5dbdae098104'/>
<id>urn:sha1:9d548d80384732bad74c3046329e5dbdae098104</id>
<content type='text'>
platform_get_resource() may return NULL, add proper
check to avoid potential NULL dereferencing.

This is detected by Coccinelle semantic patch.

@@
expression pdev, res, n, t, e, e1, e2;
@@

res = platform_get_resource(pdev, t, n);
+ if (!res)
+   return -EINVAL;
... when != res == NULL
e = devm_ioremap(e1, res-&gt;start, e2);

Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'meson-clk-for-v4.16-3' of git://github.com/BayLibre/clk-meson into clk-meson</title>
<updated>2018-01-03T01:51:29Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2018-01-03T01:51:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=348c898cb897d6663548aada9d68c0d2d7cfba8e'/>
<id>urn:sha1:348c898cb897d6663548aada9d68c0d2d7cfba8e</id>
<content type='text'>
Pull Amlogic clk driver update from Jerome Brunet:

 - Fix overflow in the mpll driver on 32bits arch

* tag 'meson-clk-for-v4.16-3' of git://github.com/BayLibre/clk-meson:
  clk: meson: mpll: use 64-bit maths in params_from_rate
</content>
</entry>
<entry>
<title>clk: meson-axg: make local symbol axg_gp0_params_table static</title>
<updated>2017-12-28T18:42:07Z</updated>
<author>
<name>weiyongjun (A)</name>
</author>
<published>2017-12-28T03:18:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=65e01ae3f295c6e79f56383dce58716a99d3d866'/>
<id>urn:sha1:65e01ae3f295c6e79f56383dce58716a99d3d866</id>
<content type='text'>
Fixes the following sparse warning:

drivers/clk/meson/axg.c:260:25: warning:
 symbol 'axg_gp0_params_table' was not declared. Should it be static?

Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>clk: meson-axg: fix return value check in axg_clkc_probe()</title>
<updated>2017-12-28T18:42:05Z</updated>
<author>
<name>weiyongjun (A)</name>
</author>
<published>2017-12-28T02:40:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4f8f7809e47b6af17032aad66f84d7c16444bd05'/>
<id>urn:sha1:4f8f7809e47b6af17032aad66f84d7c16444bd05</id>
<content type='text'>
In case of error, the function devm_ioremap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Fixes: 78b4af312f91 ("clk: meson-axg: add clock controller drivers")
Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>clk: meson: mpll: use 64-bit maths in params_from_rate</title>
<updated>2017-12-23T22:14:20Z</updated>
<author>
<name>Martin Blumenstingl</name>
</author>
<published>2017-12-23T21:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=86aacdca66774051cbc0958110a48074b57a060b'/>
<id>urn:sha1:86aacdca66774051cbc0958110a48074b57a060b</id>
<content type='text'>
"rem * SDM_DEN" can easily overflow on the 32-bit Meson8 and Meson8b
SoCs if the "remainder" (after the division operation) is greater than
262143Hz. This is likely to happen since the input clock for the MPLLs
on Meson8 and Meson8b is "fixed_pll", which is running at a rate of
2550MHz.

One example where this was observed to be problematic was the Ethernet
clock calculation (which takes MPLL2 as input). When requesting a rate
of 125MHz there is a remainder of 2500000Hz.
The resulting MPLL2 rate before this patch was 127488329Hz.
The resulting MPLL2 rate after this patch is 124999103Hz.

Commit b609338b26f5 ("clk: meson: mpll: use 64bit math in
rate_from_params") already fixed a similar issue in rate_from_params.

Fixes: 007e6e5c5f01d3 ("clk: meson: mpll: add rw operation")
Signed-off-by: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
</content>
</entry>
<entry>
<title>clk: meson-axg: add clock controller drivers</title>
<updated>2017-12-14T09:19:37Z</updated>
<author>
<name>Qiufang Dai</name>
</author>
<published>2017-12-11T14:13:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=78b4af312f910e4f28ebf4cb0a8c1983daa16924'/>
<id>urn:sha1:78b4af312f910e4f28ebf4cb0a8c1983daa16924</id>
<content type='text'>
Add clock controller drivers for Amlogic Meson-AXG SoC.

Acked-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: Qiufang Dai &lt;qiufang.dai@amlogic.com&gt;
Signed-off-by: Yixun Lan &lt;yixun.lan@amlogic.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
</content>
</entry>
<entry>
<title>clk: meson: make the spinlock naming more specific</title>
<updated>2017-12-14T09:12:41Z</updated>
<author>
<name>Yixun Lan</name>
</author>
<published>2017-12-11T14:13:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=27aad9054813b503836018aa58d1165f8d8befc8'/>
<id>urn:sha1:27aad9054813b503836018aa58d1165f8d8befc8</id>
<content type='text'>
Make the spinlock more specific, so better for lockdep
debugging and ctags/grep.

Suggested-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Signed-off-by: Yixun Lan &lt;yixun.lan@amlogic.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
</content>
</entry>
<entry>
<title>clk: meson: gxbb: remove IGNORE_UNUSED from mmc clocks</title>
<updated>2017-12-08T20:37:19Z</updated>
<author>
<name>Jerome Brunet</name>
</author>
<published>2017-12-04T13:34:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed3fb5af69afc802d6e29700fff3401ba99edac1'/>
<id>urn:sha1:ed3fb5af69afc802d6e29700fff3401ba99edac1</id>
<content type='text'>
Remove CLK_IGNORE_UNUSED from mmc clocks. This was only needed while the
mmc driver incorrectly used the xtal as source instead of the mmc
clock. Now, the driver takes the correct clock, CCF is aware that the
clock is being used and we can remove this flag.

Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Acked-by: Kevin Hilman &lt;khilman@baylibre.com&gt;
</content>
</entry>
</feed>
