<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/linux/clk.h, branch linux-4.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-11-08T15:19:18Z</updated>
<entry>
<title>clk: Provide new devm_clk helpers for prepared and enabled clocks</title>
<updated>2024-11-08T15:19:18Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2022-05-20T07:57:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6f4642e0e2f8f5090d45430255e92caa9d7772bb'/>
<id>urn:sha1:6f4642e0e2f8f5090d45430255e92caa9d7772bb</id>
<content type='text'>
[ Upstream commit 7ef9651e9792b08eb310c6beb202cbc947f43cab ]

When a driver keeps a clock prepared (or enabled) during the whole
lifetime of the driver, these helpers allow to simplify the drivers.

Reviewed-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Alexandru Ardelean &lt;aardelean@deviqon.com&gt;
Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Link: https://lore.kernel.org/r/20220520075737.758761-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Stable-dep-of: a6191a3d1811 ("gpio: aspeed: Use devm_clk api to manage clock source")
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: Add (devm_)clk_get_optional() functions</title>
<updated>2024-11-08T15:19:18Z</updated>
<author>
<name>Phil Edworthy</name>
</author>
<published>2018-12-03T11:13:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f8f353585d15bf316fc0ab26a2ef0f7f3dec0136'/>
<id>urn:sha1:f8f353585d15bf316fc0ab26a2ef0f7f3dec0136</id>
<content type='text'>
[ Upstream commit 60b8f0ddf1a927ef02141a6610fd52575134f821 ]

This adds clk_get_optional() and devm_clk_get_optional() functions to get
optional clocks.

They behave the same as (devm_)clk_get() except where there is no clock
producer. In this case, instead of returning -ENOENT, the function
returns NULL. This makes error checking simpler and allows
clk_prepare_enable, etc to be called on the returned reference
without additional checks.

Signed-off-by: Phil Edworthy &lt;phil.edworthy@renesas.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Cc: Russell King &lt;linux@armlinux.org.uk&gt;
[sboyd@kernel.org: Document in devres.txt]
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Stable-dep-of: a6191a3d1811 ("gpio: aspeed: Use devm_clk api to manage clock source")
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: Fix undefined reference to `clk_rate_exclusive_{get,put}'</title>
<updated>2023-08-30T14:31:56Z</updated>
<author>
<name>Biju Das</name>
</author>
<published>2023-07-25T17:51:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=92e79e1c0fdd233b67880c9edb17d2c8e4beae6b'/>
<id>urn:sha1:92e79e1c0fdd233b67880c9edb17d2c8e4beae6b</id>
<content type='text'>
[ Upstream commit 2746f13f6f1df7999001d6595b16f789ecc28ad1 ]

The COMMON_CLK config is not enabled in some of the architectures.
This causes below build issues:

pwm-rz-mtu3.c:(.text+0x114):
undefined reference to `clk_rate_exclusive_put'
pwm-rz-mtu3.c:(.text+0x32c):
undefined reference to `clk_rate_exclusive_get'

Fix these issues by moving clk_rate_exclusive_{get,put} inside COMMON_CLK
code block, as clk.c is enabled by COMMON_CLK.

Fixes: 55e9b8b7b806 ("clk: add clk_rate_exclusive api")
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Closes: https://lore.kernel.org/all/202307251752.vLfmmhYm-lkp@intel.com/
Signed-off-by: Biju Das &lt;biju.das.jz@bp.renesas.com&gt;
Link: https://lore.kernel.org/r/20230725175140.361479-1-biju.das.jz@bp.renesas.com
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: add duty cycle support</title>
<updated>2018-06-19T17:06:29Z</updated>
<author>
<name>Jerome Brunet</name>
</author>
<published>2018-06-19T14:41:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9fba738a53dda20e748d6ee240b6c017c8146b4b'/>
<id>urn:sha1:9fba738a53dda20e748d6ee240b6c017c8146b4b</id>
<content type='text'>
Add the possibility to apply and query the clock signal duty cycle ratio.

This is useful when the duty cycle of the clock signal depends on some
other parameters controlled by the clock framework.

For example, the duty cycle of a divider may depends on the raw divider
setting (ratio = N / div) , which is controlled by the CCF. In such case,
going through the pwm framework to control the duty cycle ratio of this
clock would be a burden.

A clock provider is not required to implement the operation to set and get
the duty cycle. If it does not implement .get_duty_cycle(), the ratio is
assumed to be 50%.

This change also adds a new flag, CLK_DUTY_CYCLE_PARENT. This flag should
be used to indicate that a clock, such as gates and muxes, may inherit
the duty cycle ratio of its parent clock. If a clock does not provide a
get_duty_cycle() callback and has CLK_DUTY_CYCLE_PARENT, then the call
will be directly forwarded to its parent clock, if any. For
set_duty_cycle(), the clock should also have CLK_SET_RATE_PARENT for the
call to be forwarded

Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Michael Turquette &lt;mturquette@baylibre.com&gt;
Link: lkml.kernel.org/r/20180619144141.8506-1-jbrunet@baylibre.com
</content>
</entry>
<entry>
<title>clk: add more __must_check for bulk APIs</title>
<updated>2018-03-16T22:45:51Z</updated>
<author>
<name>Dong Aisheng</name>
</author>
<published>2018-01-23T12:24:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6e0d4ff4580c1272f4e4860bf22841ef31fd31ba'/>
<id>urn:sha1:6e0d4ff4580c1272f4e4860bf22841ef31fd31ba</id>
<content type='text'>
we need it even when !CONFIG_HAVE_CLK because it allows
us to catch missing checking return values in the non-clk
compile configurations too. More test coverage.

Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Suggested-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Signed-off-by: Dong Aisheng &lt;aisheng.dong@nxp.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: add clk_rate_exclusive api</title>
<updated>2017-12-20T00:35:34Z</updated>
<author>
<name>Jerome Brunet</name>
</author>
<published>2017-12-01T21:51:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55e9b8b7b806ec3f9a8817e13596682a5981c19c'/>
<id>urn:sha1:55e9b8b7b806ec3f9a8817e13596682a5981c19c</id>
<content type='text'>
Using clock rate protection, we can now provide a way for clock consumer
to claim exclusive control over the rate of a producer

So far, rate change operations have been a "last write wins" affair. This
changes allows drivers to explicitly protect against this behavior, if
required.

Of course, if exclusivity over a producer is claimed more than once, the
rate is effectively locked as exclusivity cannot be preempted

Tested-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Acked-by: Michael Turquette &lt;mturquette@baylibre.com&gt;
Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Michael Turquette &lt;mturquette@baylibre.com&gt;
Link: lkml.kernel.org/r/20171201215200.23523-10-jbrunet@baylibre.com
</content>
</entry>
<entry>
<title>Merge tag 'clk-bulk-get-prep-enable' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux</title>
<updated>2017-07-14T19:37:41Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2017-07-14T19:37:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1430858fa827e0c11921f26f429ccf22188d4a56'/>
<id>urn:sha1:1430858fa827e0c11921f26f429ccf22188d4a56</id>
<content type='text'>
Pull clk api update from Stephen Boyd:
 "Small patch to add the clk_bulk_prepare_enable() and
  clk_bulk_disable_unprepare() API to the newly introduced
  clk bulk APIs.

  It would be good to get this into the -rc1 so that other
  driver trees can use it for code targeted for the next
  merge window"

* tag 'clk-bulk-get-prep-enable' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
  clk: Provide bulk prepare_enable disable_unprepare variants
</content>
</entry>
<entry>
<title>clk: Provide bulk prepare_enable disable_unprepare variants</title>
<updated>2017-07-13T06:50:53Z</updated>
<author>
<name>Bjorn Andersson</name>
</author>
<published>2017-07-12T22:04:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c48d86cc959309ee168fb87737a8cb3f97c5224'/>
<id>urn:sha1:3c48d86cc959309ee168fb87737a8cb3f97c5224</id>
<content type='text'>
This extends the existing set of bulk helpers with prepare_enable and
disable_unprepare variants.

Cc: Russell King &lt;linux@armlinux.org.uk&gt;,
Cc: Dong Aisheng &lt;aisheng.dong@nxp.com&gt;
Signed-off-by: Bjorn Andersson &lt;bjorn.andersson@linaro.org&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'clk-bulk-get' into clk-next</title>
<updated>2017-06-02T22:39:32Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2017-06-02T22:39:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=887541159c5e4a89779c021553f89df9596ddd94'/>
<id>urn:sha1:887541159c5e4a89779c021553f89df9596ddd94</id>
<content type='text'>
* clk-bulk-get:
  clk: add managed version of clk_bulk_get
  clk: add clk_bulk_get accessories
</content>
</entry>
<entry>
<title>clk: add managed version of clk_bulk_get</title>
<updated>2017-06-02T22:37:49Z</updated>
<author>
<name>Dong Aisheng</name>
</author>
<published>2017-05-19T13:49:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=618aee02e2f57042f4cdeab228caf631e524b281'/>
<id>urn:sha1:618aee02e2f57042f4cdeab228caf631e524b281</id>
<content type='text'>
This patch introduces the managed version of clk_bulk_get.

Cc: Michael Turquette &lt;mturquette@baylibre.com&gt;
Cc: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Cc: Russell King &lt;linux@arm.linux.org.uk&gt;
Cc: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Cc: "Rafael J. Wysocki" &lt;rjw@rjwysocki.net&gt;
Cc: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Cc: Mark Brown &lt;broonie@kernel.org&gt;
Cc: Shawn Guo &lt;shawnguo@kernel.org&gt;
Cc: Fabio Estevam &lt;fabio.estevam@nxp.com&gt;
Cc: Sascha Hauer &lt;kernel@pengutronix.de&gt;
Cc: Anson Huang &lt;anson.huang@nxp.com&gt;
Cc: Robin Gong &lt;yibin.gong@nxp.com&gt;
Cc: Bai Ping &lt;ping.bai@nxp.com&gt;
Cc: Leonard Crestez &lt;leonard.crestez@nxp.com&gt;
Cc: Octavian Purdila &lt;octavian.purdila@nxp.com&gt;
Signed-off-by: Dong Aisheng &lt;aisheng.dong@nxp.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
</feed>
