<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/clk/clk-gate.c, branch linux-5.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-12-11T17:57:48Z</updated>
<entry>
<title>clk: Tag basic clk types with SPDX</title>
<updated>2018-12-11T17:57:48Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2018-12-11T17:57:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e1bd55e5a567a90c5b26238a46bbaf1c775e9661'/>
<id>urn:sha1:e1bd55e5a567a90c5b26238a46bbaf1c775e9661</id>
<content type='text'>
These are all GPL-2.0 files per the existing license text. Replace the
boiler plate with the tag.

Signed-off-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: gate: expose clk_gate_ops::is_enabled</title>
<updated>2017-09-01T01:35:45Z</updated>
<author>
<name>Gabriel Fernandez</name>
</author>
<published>2017-08-21T11:59:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0a9c869d5c568054a828a38357f30d77659e5b1e'/>
<id>urn:sha1:0a9c869d5c568054a828a38357f30d77659e5b1e</id>
<content type='text'>
This patch exposes clk_gate_ops::is_enabled as functions
that can be directly called and assigned in places like this so
we don't need wrapper functions that do nothing besides forward
the call.

Signed-off-by: Gabriel Fernandez &lt;gabriel.fernandez@st.com&gt;
Suggested-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>clk: gate: fix coding style</title>
<updated>2016-11-09T20:05:50Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2016-11-09T11:00:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=295face99be9c1a214c2a80c2c6a889dbff5e1cf'/>
<id>urn:sha1:295face99be9c1a214c2a80c2c6a889dbff5e1cf</id>
<content type='text'>
The : of the ?: operator should have a leading space.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
[sboyd@codeaurora.org: Also remove useless parenthesis]
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>clk: gate: Add hw based registration APIs</title>
<updated>2016-04-19T23:55:01Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2016-02-07T07:54:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e270d8cb13763f58107198e879cf396511ba2867'/>
<id>urn:sha1:e270d8cb13763f58107198e879cf396511ba2867</id>
<content type='text'>
Add registration APIs in the clk gate code to return struct
clk_hw pointers instead of struct clk pointers. This way we hide
the struct clk pointer from providers unless they need to use
consumer facing APIs.

Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h</title>
<updated>2016-01-29T20:59:50Z</updated>
<author>
<name>Geliang Tang</name>
</author>
<published>2016-01-08T15:51:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5fd9c05c846db98319e75496612da24435cee208'/>
<id>urn:sha1:5fd9c05c846db98319e75496612da24435cee208</id>
<content type='text'>
to_clk_*(_hw) macros have been repeatedly defined in many places.
This patch moves all the to_clk_*(_hw) definitions in the common
clock framework to public header clk-provider.h, and drop the local
definitions.

Signed-off-by: Geliang Tang &lt;geliangtang@163.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>clk: basic-type: Silence warnings about lock imbalances</title>
<updated>2015-07-28T18:59:28Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2015-07-24T19:21:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=661e2180cf050a2f859d466f30d74e990b9345be'/>
<id>urn:sha1:661e2180cf050a2f859d466f30d74e990b9345be</id>
<content type='text'>
The basic clock types use conditional locking for the register
accessor spinlocks. Add __acquire() and __release() markings in
the right locations so that sparse isn't tripped up on the
conditional locking.

drivers/clk/clk-mux.c:68:12: warning: context imbalance in 'clk_mux_set_parent' - different lock contexts for basic block
drivers/clk/clk-divider.c:379:12: warning: context imbalance in 'clk_divider_set_rate' - different lock contexts for basic block
drivers/clk/clk-gate.c:71:9: warning: context imbalance in 'clk_gate_endisable' - different lock contexts for basic block
drivers/clk/clk-fractional-divider.c:36:9: warning: context imbalance in 'clk_fd_recalc_rate' - different lock contexts for basic block
drivers/clk/clk-fractional-divider.c:68:12: warning: context imbalance in 'clk_fd_set_rate' - different lock contexts for basic block

Cc: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>clk: basic-types: Remove useless allocation failure printks</title>
<updated>2015-05-14T23:51:50Z</updated>
<author>
<name>Stephen Boyd</name>
</author>
<published>2015-05-14T23:47:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d122db7e86669244759226bfdd2b9d623d5c6ae8'/>
<id>urn:sha1:d122db7e86669244759226bfdd2b9d623d5c6ae8</id>
<content type='text'>
Printing an error on kmalloc() failures is unnecessary. Remove
the print and use *ptr in sizeof() for future-proof code.

Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>clk-gate: fix bit # check in clk_register_gate()</title>
<updated>2015-01-20T18:09:05Z</updated>
<author>
<name>Sergei Shtylyov</name>
</author>
<published>2014-12-24T14:43:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2e9dcdae4068460c45a308dd891be5248260251c'/>
<id>urn:sha1:2e9dcdae4068460c45a308dd891be5248260251c</id>
<content type='text'>
In case CLK_GATE_HIWORD_MASK flag is passed to clk_register_gate(), the bit #
should be no higher than 15, however the corresponding check is obviously off-
by-one.

Fixes: 045779942c04 ("clk: gate: add CLK_GATE_HIWORD_MASK")
Signed-off-by: Sergei Shtylyov &lt;sergei.shtylyov@cogentembedded.com&gt;
Signed-off-by: Michael Turquette &lt;mturquette@linaro.org&gt;
</content>
</entry>
<entry>
<title>clk: Add clk_unregister_{divider, gate, mux} to close memory leak</title>
<updated>2015-01-17T21:52:41Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2015-01-05T09:52:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4e3c021fb995bcbb5d1f814d00584cb80eb904a8'/>
<id>urn:sha1:4e3c021fb995bcbb5d1f814d00584cb80eb904a8</id>
<content type='text'>
The common clk_register_{divider,gate,mux} functions allocated memory
for internal data which wasn't freed anywhere. Drivers using these
helpers could only unregister clocks but the memory would still leak.

Add corresponding unregister functions which will release all resources.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Reviewed-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
Signed-off-by: Michael Turquette &lt;mturquette@linaro.org&gt;
</content>
</entry>
<entry>
<title>clk: use uninitialized_var instead setting 'flags' to 0 directly.</title>
<updated>2014-09-27T23:03:06Z</updated>
<author>
<name>Xiubo Li</name>
</author>
<published>2014-09-22T05:52:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7af472485733c19a52bba5d1a064f6d88c0d9880'/>
<id>urn:sha1:7af472485733c19a52bba5d1a064f6d88c0d9880</id>
<content type='text'>
Setting 'flags' to zero will be certainly a misleading way to avoid
warning of 'flags' may be used uninitialized. uninitialized_var is
a correct way because the warning is a false possitive.

Signed-off-by: Xiubo Li &lt;Li.Xiubo@freescale.com&gt;
Signed-off-by: Mike Turquette &lt;mturquette@linaro.org&gt;
</content>
</entry>
</feed>
