<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/clocksource/mmio.c, branch v4.3</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>clocksource: Fix clocksource_mmio_readX_down</title>
<updated>2014-05-23T07:19:40+00:00</updated>
<author>
<name>Xiubo Li</name>
<email>Li.Xiubo@freescale.com</email>
</author>
<published>2014-04-23T02:12:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=95c19a06ec1cf9530ebb8f2c7eeda1d7398b43f1'/>
<id>95c19a06ec1cf9530ebb8f2c7eeda1d7398b43f1</id>
<content type='text'>
For some clocksource devices, for example, the registers are 32-bit, while
the lower 16-bit is used for timer counting(And reading the upper 16-bit
will return 0).

For example, when the counter value is 0x00001111, and then the
~readl_relaxed(to_mmio_clksrc(c)-&gt;reg) will return the value of 0xFFFFEEEE,
but it should be 0x0000EEEE.

So just using the c-&gt;mask to mask the unused bits.

Signed-off-by: Xiubo Li &lt;Li.Xiubo@freescale.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For some clocksource devices, for example, the registers are 32-bit, while
the lower 16-bit is used for timer counting(And reading the upper 16-bit
will return 0).

For example, when the counter value is 0x00001111, and then the
~readl_relaxed(to_mmio_clksrc(c)-&gt;reg) will return the value of 0xFFFFEEEE,
but it should be 0x0000EEEE.

So just using the c-&gt;mask to mask the unused bits.

Signed-off-by: Xiubo Li &lt;Li.Xiubo@freescale.com&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>clocksource: Fix type confusion for clocksource_mmio_readX_Y</title>
<updated>2014-05-23T07:19:39+00:00</updated>
<author>
<name>Xiubo Li</name>
<email>Li.Xiubo@freescale.com</email>
</author>
<published>2014-04-23T02:11:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=4a3ae07413844733e4cb3765f67a752b846df913'/>
<id>4a3ae07413844733e4cb3765f67a752b846df913</id>
<content type='text'>
The types' definations are:
   o  cycle_t       -&gt; u64
   o  readl_relaxed -&gt; u32
   o  readw_relaxed -&gt; u16

So let clocksource_mmio_readX_Ys return a cast to cycle_t, though
this maybe look reduntant sometimes, it make sense and they will be
more readable and less confusion...

This patch clarifies the functions type and fix it.

Signed-off-by: Xiubo Li &lt;Li.Xiubo@freescale.com&gt;
Cc: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The types' definations are:
   o  cycle_t       -&gt; u64
   o  readl_relaxed -&gt; u32
   o  readw_relaxed -&gt; u16

So let clocksource_mmio_readX_Ys return a cast to cycle_t, though
this maybe look reduntant sometimes, it make sense and they will be
more readable and less confusion...

This patch clarifies the functions type and fix it.

Signed-off-by: Xiubo Li &lt;Li.Xiubo@freescale.com&gt;
Cc: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
Signed-off-by: Daniel Lezcano &lt;daniel.lezcano@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>clocksource: add common mmio clocksource</title>
<updated>2011-05-23T17:04:51+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@arm.linux.org.uk</email>
</author>
<published>2011-05-08T13:06:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=442c8176d2efa468577738e3a99a6e051f6e8e55'/>
<id>442c8176d2efa468577738e3a99a6e051f6e8e55</id>
<content type='text'>
Add a generic mmio clocksource, covering both 32-bit and 16-bit register
access sizes, for up or down counters.  This can be used to easily
create clocksources for simple counter-based implementations.

Cc: Alessandro Rubini &lt;rubini@unipv.it&gt;
Cc: Colin Cross &lt;ccross@android.com&gt;
Cc: Eric Miao &lt;eric.y.miao@gmail.com&gt;
Cc: Erik Gilling &lt;konkers@android.com&gt;
Acked-by: "Hans J. Koch" &lt;hjk@hansjkoch.de&gt;
Cc: Imre Kaloz &lt;kaloz@openwrt.org&gt;
Cc: Krzysztof Halasa &lt;khc@pm.waw.pl&gt;
Cc: Kukjin Kim &lt;kgene.kim@samsung.com&gt;
Cc: Lennert Buytenhek &lt;kernel@wantstofly.org&gt;
Cc: Linus Walleij &lt;linus.walleij@stericsson.com&gt;
Cc: linux-omap@vger.kernel.org
Acked-by: Nicolas Pitre &lt;nico@fluxnic.net&gt;
Cc: Olof Johansson &lt;olof@lixom.net&gt;
Tested-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Reviewed-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Tested-by: Tony Lindgren &lt;tony@atomide.com&gt;
Reviewed-by: Viresh Kumar &lt;viresh.kumar@st.com&gt;
Cc: Wan ZongShun &lt;mcuos.com@gmail.com&gt;
Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a generic mmio clocksource, covering both 32-bit and 16-bit register
access sizes, for up or down counters.  This can be used to easily
create clocksources for simple counter-based implementations.

Cc: Alessandro Rubini &lt;rubini@unipv.it&gt;
Cc: Colin Cross &lt;ccross@android.com&gt;
Cc: Eric Miao &lt;eric.y.miao@gmail.com&gt;
Cc: Erik Gilling &lt;konkers@android.com&gt;
Acked-by: "Hans J. Koch" &lt;hjk@hansjkoch.de&gt;
Cc: Imre Kaloz &lt;kaloz@openwrt.org&gt;
Cc: Krzysztof Halasa &lt;khc@pm.waw.pl&gt;
Cc: Kukjin Kim &lt;kgene.kim@samsung.com&gt;
Cc: Lennert Buytenhek &lt;kernel@wantstofly.org&gt;
Cc: Linus Walleij &lt;linus.walleij@stericsson.com&gt;
Cc: linux-omap@vger.kernel.org
Acked-by: Nicolas Pitre &lt;nico@fluxnic.net&gt;
Cc: Olof Johansson &lt;olof@lixom.net&gt;
Tested-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Reviewed-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Tested-by: Tony Lindgren &lt;tony@atomide.com&gt;
Reviewed-by: Viresh Kumar &lt;viresh.kumar@st.com&gt;
Cc: Wan ZongShun &lt;mcuos.com@gmail.com&gt;
Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
</pre>
</div>
</content>
</entry>
</feed>
