<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/clk/ti/clkctrl.c, 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>2019-12-05T08:19:40Z</updated>
<entry>
<title>clk: ti: clkctrl: Fix failed to enable error with double udelay timeout</title>
<updated>2019-12-05T08:19:40Z</updated>
<author>
<name>Tony Lindgren</name>
</author>
<published>2019-09-30T15:40:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=28f34294442b5525796d801f26ef3eda253f0096'/>
<id>urn:sha1:28f34294442b5525796d801f26ef3eda253f0096</id>
<content type='text'>
[ Upstream commit 81a41901ffd46bac6df4c95b8290ac259e0feda8 ]

Commit 3d8598fb9c5a ("clk: ti: clkctrl: use fallback udelay approach if
timekeeping is suspended") added handling for cases when timekeeping is
suspended. But looks like we can still get occasional "failed to enable"
errors on the PM runtime resume path with udelay() returning faster than
expected.

With ti-sysc interconnect target module driver this leads into device
failure with PM runtime failing with "failed to enable" clkctrl error.

Let's fix the issue with a delay of two times the desired delay as in
often done for udelay() to account for the inaccuracy.

Fixes: 3d8598fb9c5a ("clk: ti: clkctrl: use fallback udelay approach if timekeeping is suspended")
Cc: Keerthy &lt;j-keerthy@ti.com&gt;
Cc: Tero Kristo &lt;t-kristo@ti.com&gt;
Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
Link: https://lkml.kernel.org/r/20190930154001.46581-1-tony@atomide.com
Tested-by: Keerthy &lt;j-keerthy@ti.com&gt;
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: ti: clkctrl: Fix returning uninitialized data</title>
<updated>2019-07-21T07:03:04Z</updated>
<author>
<name>Tony Lindgren</name>
</author>
<published>2019-05-30T06:55:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cf4deb2d4de6951ca30ce34f71c19e39ec92af57'/>
<id>urn:sha1:cf4deb2d4de6951ca30ce34f71c19e39ec92af57</id>
<content type='text'>
[ Upstream commit 41b3588dba6ef4b7995735a97e47ff0aeea6c276 ]

If we do a clk_get() for a clock that does not exists, we have
_ti_omap4_clkctrl_xlate() return uninitialized data if no match
is found. This can be seen in some cases with SLAB_DEBUG enabled:

Unable to handle kernel paging request at virtual address 5a5a5a5a
...
clk_hw_create_clk.part.33
sysc_notifier_call
notifier_call_chain
blocking_notifier_call_chain
device_add

Let's fix this by setting a found flag only when we find a match.

Reported-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Fixes: 88a172526c32 ("clk: ti: add support for clkctrl clocks")
Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
Tested-by: Peter Ujfalusi &lt;peter.ujfalusi@ti.com&gt;
Tested-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
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: ti: clkctrl: Fix clkdm_clk handling</title>
<updated>2019-06-22T06:15:15Z</updated>
<author>
<name>Tony Lindgren</name>
</author>
<published>2019-05-06T21:08:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=00ed897d618ef0777ca126f8698dff6bf08f7979'/>
<id>urn:sha1:00ed897d618ef0777ca126f8698dff6bf08f7979</id>
<content type='text'>
[ Upstream commit 1cc54078d104f5b4d7e9f8d55362efa5a8daffdb ]

We need to always call clkdm_clk_enable() and clkdm_clk_disable() even
the clkctrl clock(s) enabled for the domain do not have any gate register
bits. Otherwise clockdomains may never get enabled except when devices get
probed with the legacy "ti,hwmods" devicetree property.

Fixes: 88a172526c32 ("clk: ti: add support for clkctrl clocks")
Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
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: ti: clkctrl: add support for CLK_SET_RATE_PARENT flag</title>
<updated>2018-03-08T10:14:43Z</updated>
<author>
<name>Tero Kristo</name>
</author>
<published>2018-02-23T12:28:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49159a9dc3da83f17be00acbc7b2ab84ffec1aa7'/>
<id>urn:sha1:49159a9dc3da83f17be00acbc7b2ab84ffec1aa7</id>
<content type='text'>
Certain clkctrl clocks, notably the display ones, use the
CLK_SET_RATE_PARENT feature extensively. Add support for this flag
to the clkctrl clocks.

Signed-off-by: Tero Kristo &lt;t-kristo@ti.com&gt;
Reported-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Acked-by: Tony Lindgren &lt;tony@atomide.com&gt;
Tested-by: Jyri Sarha &lt;jsarha@ti.com&gt;
</content>
</entry>
<entry>
<title>clk: ti: dm816: add clkctrl clock data</title>
<updated>2017-12-01T13:18:06Z</updated>
<author>
<name>Tero Kristo</name>
</author>
<published>2017-08-24T12:44:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=50ef50897e52c8ae7873b1692a44ac1ca8130fe3'/>
<id>urn:sha1:50ef50897e52c8ae7873b1692a44ac1ca8130fe3</id>
<content type='text'>
Add data for dm816 clkctrl clocks, and register it within the clkctrl
driver.

Signed-off-by: Tero Kristo &lt;t-kristo@ti.com&gt;
</content>
</entry>
<entry>
<title>clk: ti: dm814: add clkctrl clock data</title>
<updated>2017-12-01T13:18:01Z</updated>
<author>
<name>Tero Kristo</name>
</author>
<published>2017-08-24T12:41:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=26ca2e9738449ea81fffdfb5cd62823d1be9cf00'/>
<id>urn:sha1:26ca2e9738449ea81fffdfb5cd62823d1be9cf00</id>
<content type='text'>
Add data for dm814 clkctrl clocks, and register it within the clkctrl
driver.

Signed-off-by: Tero Kristo &lt;t-kristo@ti.com&gt;
</content>
</entry>
<entry>
<title>clk: ti: am43xx: add clkctrl clock data</title>
<updated>2017-12-01T13:17:39Z</updated>
<author>
<name>Tero Kristo</name>
</author>
<published>2017-08-10T13:11:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a3da10b70978e77ccd9d3f6c14a33d54cda74141'/>
<id>urn:sha1:a3da10b70978e77ccd9d3f6c14a33d54cda74141</id>
<content type='text'>
Add data for am43xx clkctrl clocks, and register it within the clkctrl
driver.

Signed-off-by: Tero Kristo &lt;t-kristo@ti.com&gt;
Acked-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>clk: ti: am33xx: add clkctrl clock data</title>
<updated>2017-12-01T13:17:25Z</updated>
<author>
<name>Tero Kristo</name>
</author>
<published>2017-08-09T08:59:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df54bfc5502ac67c152e1d9d36f6e8c03a07af0c'/>
<id>urn:sha1:df54bfc5502ac67c152e1d9d36f6e8c03a07af0c</id>
<content type='text'>
Add data for am33xx clkctrl clocks, and register it within the clkctrl
driver.

Signed-off-by: Tero Kristo &lt;t-kristo@ti.com&gt;
</content>
</entry>
<entry>
<title>clk: ti: dra7: add clkctrl clock data</title>
<updated>2017-12-01T13:17:18Z</updated>
<author>
<name>Tero Kristo</name>
</author>
<published>2017-08-04T14:25:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=24d504a38bef390a68c46b68aeff76c6debf4b91'/>
<id>urn:sha1:24d504a38bef390a68c46b68aeff76c6debf4b91</id>
<content type='text'>
Add data for dra7 clkctrl clocks, and register it within the clkctrl
driver.

Signed-off-by: Tero Kristo &lt;t-kristo@ti.com&gt;
</content>
</entry>
<entry>
<title>clk: ti: omap5: add clkctrl clock data</title>
<updated>2017-12-01T13:17:18Z</updated>
<author>
<name>Tero Kristo</name>
</author>
<published>2017-07-31T09:16:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0ad902f62f484fc6c05b4dddf3fdc388128dae55'/>
<id>urn:sha1:0ad902f62f484fc6c05b4dddf3fdc388128dae55</id>
<content type='text'>
Add data for omap5 clkctrl clocks, and register it within the clkctrl
driver.

Signed-off-by: Tero Kristo &lt;t-kristo@ti.com&gt;
</content>
</entry>
</feed>
