<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/clk, branch v3.5</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v3.5</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.5'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2012-07-18T04:34:53Z</updated>
<entry>
<title>Clk: SPEAr1340: Update sys clock parent array</title>
<updated>2012-07-18T04:34:53Z</updated>
<author>
<name>Vipul Kumar Samar</name>
<email>vipulkumar.samar@st.com</email>
</author>
<published>2012-07-06T10:22:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d4f513ff12c1d74b379715e78c01002f5d055315'/>
<id>urn:sha1:d4f513ff12c1d74b379715e78c01002f5d055315</id>
<content type='text'>
sys_clk has multiple parents and selection of parent depends on sys_clk_ctrl
register bit no. 23:25, with following possibilities

   0XX: pll1_clk
   10X: sys_synth_clk
   110: pll2_clk
   111: pll3_clk

Out of several possibilities (h/w wise) to select same clock parent for
sys_clk, current clock implementation was considering just one value.

When bootloader programmed different (valid) value to select a clock
parent then Linux breaks.

Here, we try to include all possibilities which can lead to same
clock selection thus making Linux independent of bootloader selection
values.

Signed-off-by: Vipul Kumar Samar &lt;vipulkumar.samar@st.com&gt;
Signed-off-by: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Acked-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
</content>
</entry>
<entry>
<title>clk: SPEAr1340: Fix clk enable register for uart1 and i2c1.</title>
<updated>2012-07-18T04:34:48Z</updated>
<author>
<name>Vipul Kumar Samar</name>
<email>vipulkumar.samar@st.com</email>
</author>
<published>2012-07-04T10:52:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d9ba8db2157654e2fc159a63c4b6eb8cffb352ae'/>
<id>urn:sha1:d9ba8db2157654e2fc159a63c4b6eb8cffb352ae</id>
<content type='text'>
This patch is to fix typing mistake of clk enable register of i2c1 and
uart1.

Signed-off-by: Vipul Kumar Samar &lt;vipulkumar.samar@st.com&gt;
Signed-off-by: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Acked-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
</content>
</entry>
<entry>
<title>Clk:spear6xx:Fix: Rename clk ids within predefined limit</title>
<updated>2012-07-18T04:34:42Z</updated>
<author>
<name>Vipul Kumar Samar</name>
<email>vipulkumar.samar@st.com</email>
</author>
<published>2012-07-10T11:42:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a8f4bf0eb4ca7a0a578079fb5807e59b7111a1e2'/>
<id>urn:sha1:a8f4bf0eb4ca7a0a578079fb5807e59b7111a1e2</id>
<content type='text'>
The max limit of con_id is 16 and dev_id is 20. As of now for spear6xx, many clk
ids are exceeding this predefined limit.

This patch is intended to rename clk ids like:
    mux_clk -&gt; _mclk
    gate_clk -&gt; _gclk
    synth_clk -&gt; syn_clk
    ras_gen1_synth_gate_clk -&gt; ras_syn1_gclk
    pll3_48m -&gt; pll3_

Signed-off-by: Vipul Kumar Samar &lt;vipulkumar.samar@st.com&gt;
Signed-off-by: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Acked-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>Clk:spear3xx:Fix: Rename clk ids within predefined limit</title>
<updated>2012-07-18T04:34:39Z</updated>
<author>
<name>Vipul Kumar Samar</name>
<email>vipulkumar.samar@st.com</email>
</author>
<published>2012-07-10T11:42:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5cfc545f50c4b6c0800e578b51019f2ecf490f1e'/>
<id>urn:sha1:5cfc545f50c4b6c0800e578b51019f2ecf490f1e</id>
<content type='text'>
The max limit of con_id is 16 and dev_id is 20. As of now for spear3xx, many clk
ids are exceeding this predefined limit.

This patch is intended to rename clk ids like:
    mux_clk -&gt; _mclk
    gate_clk -&gt; _gclk
    synth_clk -&gt; syn_clk
    ras_gen1_synth_gate_clk -&gt; ras_syn1_gclk
    ras_pll3_48m -&gt; ras_pll3_
    pll3_48m -&gt; pll3_

Signed-off-by: Vipul Kumar Samar &lt;vipulkumar.samar@st.com&gt;
Signed-off-by: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Acked-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>clk:spear1310:Fix: Rename clk ids within predefined limit</title>
<updated>2012-07-18T04:34:36Z</updated>
<author>
<name>Vipul Kumar Samar</name>
<email>vipulkumar.samar@st.com</email>
</author>
<published>2012-07-10T11:42:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e28f1aa110c919716188b979c4404e4c8e9794b9'/>
<id>urn:sha1:e28f1aa110c919716188b979c4404e4c8e9794b9</id>
<content type='text'>
The max limit of con_id is 16 and dev_id is 20. As of now for spear1310, many
clk ids are exceeding this predefined limit.

This patch is intended to rename clk ids like:
    mux_clk -&gt; _mclk
    gate_clk -&gt; _gclk
    synth_clk -&gt; syn_clk
    gmac_phy -&gt; phy_
    gmii_125m_pad -&gt; gmii_pad

Signed-off-by: Vipul Kumar Samar &lt;vipulkumar.samar@st.com&gt;
Signed-off-by: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Acked-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>clk:spear1340:Fix: Rename clk ids within predefined limit</title>
<updated>2012-07-18T04:34:33Z</updated>
<author>
<name>Vipul Kumar Samar</name>
<email>vipulkumar.samar@st.com</email>
</author>
<published>2012-07-10T11:42:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5cb6a9bccaa65e0cbf567485ac6d04ca3fdae79c'/>
<id>urn:sha1:5cb6a9bccaa65e0cbf567485ac6d04ca3fdae79c</id>
<content type='text'>
The max limit of con_id is 16 and dev_id is 20. As of now for spear1340, many
clk ids are exceeding this predefined limit.

This patch rename clk ids like:
    mux_clk -&gt; _mclk
    gate_clk -&gt; _gclk
    synth_clk -&gt; syn_clk
    gmac_phy -&gt; phy_
    gmii_125m_pad_ -&gt; gmii_pad

Signed-off-by: Vipul Kumar Samar &lt;vipulkumar.samar@st.com&gt;
Signed-off-by: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Acked-by: Viresh Kumar &lt;viresh.kumar@linaro.org&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>clk: fix parent validation in __clk_set_parent()</title>
<updated>2012-07-03T19:05:14Z</updated>
<author>
<name>Rajendra Nayak</name>
<email>rnayak@ti.com</email>
</author>
<published>2012-07-03T06:41:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=863b13271f1608ab3af6f7a371047d9a66693e38'/>
<id>urn:sha1:863b13271f1608ab3af6f7a371047d9a66693e38</id>
<content type='text'>
The below commit introduced a bug in __clk_set_parent()
which could cause it to *skip* the parent validation
which makes sure the parent passed to the api is a valid
one.

    commit 7975059db572eb47f0fb272a62afeae272a4b209
    Author: Rajendra Nayak &lt;rnayak@ti.com&gt;
    Date:   Wed Jun 6 14:41:31 2012 +0530

        clk: Allow late cache allocation for clk-&gt;parents

This was identified by the following compiler warning..

    drivers/clk/clk.c: In function '__clk_set_parent':
    drivers/clk/clk.c:1083:5: warning: 'i' may be used uninitialized in this function [-Wuninitialized]

.. as reported by Marc Kleine-Budde.

There were various options discussed on how to fix this, one
being initing 'i' to clk-&gt;num_parents, but the below approach
was found to be more appropriate as it also makes the 'parent
validation' code simpler to read.

Reported-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
Signed-off-by: Rajendra Nayak &lt;rnayak@ti.com&gt;
Signed-off-by: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: stable@kernel.org
</content>
</entry>
<entry>
<title>clk: mxs: fix clock lookup after freeing init memory</title>
<updated>2012-06-25T23:51:48Z</updated>
<author>
<name>Marc Kleine-Budde</name>
<email>mkl@pengutronix.de</email>
</author>
<published>2012-06-21T18:04:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d03ac61daa8d4d17cd83a5ab98e85b616b90c7ac'/>
<id>urn:sha1:d03ac61daa8d4d17cd83a5ab98e85b616b90c7ac</id>
<content type='text'>
The struct clk_lookup are marked as __initdata, resulting in being
removed from memory after the kernel finished booting. However this
leads to a NULL pointer de-ref if loading a module which uses clk_get.

This patch removes the __initdata from the struct clk_lookup.

Signed-off-by: Marc Kleine-Budde &lt;mkl@pengutronix.de&gt;
Signed-off-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Mike Turquette &lt;mturquette@linaro.org&gt;
</content>
</entry>
<entry>
<title>clk: mxs: fix ref_io clock definition</title>
<updated>2012-06-25T23:51:48Z</updated>
<author>
<name>Shawn Guo</name>
<email>shawn.guo@linaro.org</email>
</author>
<published>2012-06-22T02:13:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d6dc55c1857ff1911780881b74537785d8a4e6e1'/>
<id>urn:sha1:d6dc55c1857ff1911780881b74537785d8a4e6e1</id>
<content type='text'>
The definition of clocks ref_io0 and ref_io1 were inverted.  It causes
a mmc regression on some boards right away.  Fix the regression by
correcting the ref_io clock definition.

Reported-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Signed-off-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
Signed-off-by: Mike Turquette &lt;mturquette@linaro.org&gt;
</content>
</entry>
<entry>
<title>clk: Check parent for NULL in clk_change_rate</title>
<updated>2012-06-25T23:51:48Z</updated>
<author>
<name>Pawel Moll</name>
<email>pawel.moll@arm.com</email>
</author>
<published>2012-06-08T13:04:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bf47b4fd8f9f81cd5ce40e1945c6334d088226d1'/>
<id>urn:sha1:bf47b4fd8f9f81cd5ce40e1945c6334d088226d1</id>
<content type='text'>
clk_change_rate() is accessing parent's rate without checking
if the parent exists at all. In case of root clocks this will
cause NULL pointer dereference.

This patch follows what clk_calc_new_rates() does in such
situation.

Signed-off-by: Pawel Moll &lt;pawel.moll@arm.com&gt;
Signed-off-by: Mike Turquette &lt;mturquette@linaro.org&gt;
Cc: stable@kernel.org
</content>
</entry>
</feed>
