<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/clk/imx/clk-gate2.c, branch linux-6.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.9.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.9.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2020-11-10T01:08:03Z</updated>
<entry>
<title>clk: imx: gate2: Remove unused variable ret</title>
<updated>2020-11-10T01:08:03Z</updated>
<author>
<name>Zou Wei</name>
<email>zou_wei@huawei.com</email>
</author>
<published>2020-11-03T11:32:14Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f2bd43f1c97f0ef6612cde87aa941248a91c59c6'/>
<id>urn:sha1:f2bd43f1c97f0ef6612cde87aa941248a91c59c6</id>
<content type='text'>
This patch fixes below warning reported by coccicheck:

./clk-gate2.c:57:5-8: Unneeded variable: "ret". Return "0" on line 68

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Zou Wei &lt;zou_wei@huawei.com&gt;
Reviewed-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: imx: gate2: Add locking in is_enabled op</title>
<updated>2020-11-02T23:55:41Z</updated>
<author>
<name>Abel Vesa</name>
<email>abel.vesa@nxp.com</email>
</author>
<published>2020-10-28T12:59:02Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=65188f07456d4a65b4a66069a701823878e098ff'/>
<id>urn:sha1:65188f07456d4a65b4a66069a701823878e098ff</id>
<content type='text'>
Protect against enabling/disabling the gate while we're
checking if it is enabled.

Signed-off-by: Abel Vesa &lt;abel.vesa@nxp.com&gt;
Reviewed-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: imx: gate2: Add cgr_mask for more flexible number of control bits</title>
<updated>2020-11-02T23:55:38Z</updated>
<author>
<name>Abel Vesa</name>
<email>abel.vesa@nxp.com</email>
</author>
<published>2020-10-28T12:59:01Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=bcd418a632b621510ebc731cb707d8fe3e873119'/>
<id>urn:sha1:bcd418a632b621510ebc731cb707d8fe3e873119</id>
<content type='text'>
On some i.MX8 platforms, there are HW gates that share the same bit.
So in order to make this clock type more usable, use a mask to specify
how many bits belong to those HW gates.

Signed-off-by: Abel Vesa &lt;abel.vesa@nxp.com&gt;
Reviewed-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: imx: gate2: Check if clock is enabled against cgr_val</title>
<updated>2020-11-02T23:55:35Z</updated>
<author>
<name>Abel Vesa</name>
<email>abel.vesa@nxp.com</email>
</author>
<published>2020-10-28T12:59:00Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=03681d06a555a6c5f39de48d68082e7444db329f'/>
<id>urn:sha1:03681d06a555a6c5f39de48d68082e7444db329f</id>
<content type='text'>
Seems the logic here was wrong all along. For example, if
the cgr_val is 2 (0b10), the clk_gate2_reg_is_enabled would
report the clock as disabled. So check against cgr_val instead.

Signed-off-by: Abel Vesa &lt;abel.vesa@nxp.com&gt;
Reviewed-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: imx: gate2: Keep the register writing in on place</title>
<updated>2020-11-02T23:55:33Z</updated>
<author>
<name>Abel Vesa</name>
<email>abel.vesa@nxp.com</email>
</author>
<published>2020-10-28T12:58:59Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=040adb5fe95ad39c0a714cf3b05950974caf42ed'/>
<id>urn:sha1:040adb5fe95ad39c0a714cf3b05950974caf42ed</id>
<content type='text'>
Move all the register writing to the newly added clk_gate2_do_shared_clks
and call that everywhere need needed. Cleans up the code a little bit.

Signed-off-by: Abel Vesa &lt;abel.vesa@nxp.com&gt;
Reviewed-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: imx: gate2: Remove the IMX_CLK_GATE2_SINGLE_BIT special case</title>
<updated>2020-11-02T23:55:11Z</updated>
<author>
<name>Abel Vesa</name>
<email>abel.vesa@nxp.com</email>
</author>
<published>2020-10-28T12:58:58Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=12309428c27737c21735fb28540c6c6f69f632f6'/>
<id>urn:sha1:12309428c27737c21735fb28540c6c6f69f632f6</id>
<content type='text'>
This was a hack which would allow multiple HW gates to be controlled
by a single bit. The only user of this is the imx_dev_clk_hw_gate_shared
which is not used anywhere as of now. Basically, complicates the logic
of the driver for no reason.

Signed-off-by: Abel Vesa &lt;abel.vesa@nxp.com&gt;
Reviewed-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: imx: gate2: Fix a few typos</title>
<updated>2020-09-13T01:21:29Z</updated>
<author>
<name>Jonathan Neuschäfer</name>
<email>j.neuschaefer@gmx.net</email>
</author>
<published>2020-09-05T15:10:16Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b0772b4d95b1341d1f0f273894b999aa6b0916ba'/>
<id>urn:sha1:b0772b4d95b1341d1f0f273894b999aa6b0916ba</id>
<content type='text'>
A few words were misspelled in this comment.

Signed-off-by: Jonathan Neuschäfer &lt;j.neuschaefer@gmx.net&gt;
Reviewed-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: imx: Support building i.MX common clock driver as module</title>
<updated>2020-08-22T04:38:20Z</updated>
<author>
<name>Anson Huang</name>
<email>Anson.Huang@nxp.com</email>
</author>
<published>2020-07-30T01:22:51Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=870ed5e22ae18b63751140b4050050ca2115ba60'/>
<id>urn:sha1:870ed5e22ae18b63751140b4050050ca2115ba60</id>
<content type='text'>
There are more and more requirements of building SoC specific drivers
as modules, add support for building i.MX common clock driver as module
to meet the requirement.

Signed-off-by: Anson Huang &lt;Anson.Huang@nxp.com&gt;
Reviewed-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: imx: gate2: Allow single bit gating clock</title>
<updated>2020-04-29T02:00:05Z</updated>
<author>
<name>Abel Vesa</name>
<email>abel.vesa@nxp.com</email>
</author>
<published>2020-04-15T08:02:45Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1e54afe9fcfe99cf913526cbcb0128e4a91d0621'/>
<id>urn:sha1:1e54afe9fcfe99cf913526cbcb0128e4a91d0621</id>
<content type='text'>
Audiomix on i.MX8MP registers two gates that share the same enable count
but use the same bit to control the gate instead of two bits. By adding
the flag IMX_CLK_GATE2_SINGLE_BIT we allow the gate2 to use the generic
gate ops for enable, disable and is_enabled.
For the disable_unused, nothing happens if this flag is specified.

Signed-off-by: Abel Vesa &lt;abel.vesa@nxp.com&gt;
Reviewed-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>clk: imx: clk-gate2: Pass the device to the register function</title>
<updated>2020-03-16T01:38:30Z</updated>
<author>
<name>Abel Vesa</name>
<email>abel.vesa@nxp.com</email>
</author>
<published>2020-03-13T16:10:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b5881e8019e0d39c43a2da56c4ae616a50615e00'/>
<id>urn:sha1:b5881e8019e0d39c43a2da56c4ae616a50615e00</id>
<content type='text'>
The device needs to be passed on to the clk_hw_register.

Fixes: 1f9aec9662566189 ("clk: imx: clk-gate2: Switch to clk_hw based API")
Signed-off-by: Abel Vesa &lt;abel.vesa@nxp.com&gt;
Reviewed-by: Stephen Boyd &lt;sboyd@kernel.org&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
</feed>
