<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/arm/mach-omap1/timer.c, branch linux-3.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-05-11T12:13:51Z</updated>
<entry>
<title>ARM: OMAP1: DMTIMER: fix broken timer clock source selection</title>
<updated>2012-05-11T12:13:51Z</updated>
<author>
<name>Paul Walmsley</name>
</author>
<published>2012-04-11T00:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0226dfd2a217e1a8123e2d26c98ac4f1dadc2eea'/>
<id>urn:sha1:0226dfd2a217e1a8123e2d26c98ac4f1dadc2eea</id>
<content type='text'>
commit 6aaec67da1e41a0752a2b903b989e73b9f02e182 upstream.

DMTIMER source selection on OMAP1 is broken.  omap1_dm_timer_set_src()
tries to use __raw_{read,write}l() to read from and write to physical
addresses, but those functions take virtual addresses.

sparse caught this:

arch/arm/mach-omap1/timer.c:50:13: warning: incorrect type in argument 1 (different base types)
arch/arm/mach-omap1/timer.c:50:13:    expected void const volatile [noderef] &lt;asn:2&gt;*&lt;noident&gt;
arch/arm/mach-omap1/timer.c:50:13:    got unsigned int
arch/arm/mach-omap1/timer.c:52:9: warning: incorrect type in argument 1 (different base types)
arch/arm/mach-omap1/timer.c:52:9:    expected void const volatile [noderef] &lt;asn:2&gt;*&lt;noident&gt;
arch/arm/mach-omap1/timer.c:52:9:    got unsigned int

Fix by using omap_{read,writel}(), just like the other users of the
MOD_CONF_CTRL_1 register in the OMAP1 codebase.  Of course, in the long term,
removing omap_{read,write}l() is the appropriate thing to do; but
this will take some work to do this cleanly.

Looks like this was caused by 97933d6 (ARM: OMAP1: dmtimer: conversion
to platform devices) that dangerously moved code and changed it in
the same patch.

Signed-off-by: Paul Walmsley &lt;paul@pwsan.com&gt;
Cc: Tarun Kanti DebBarma &lt;tarun.kanti@ti.com&gt;
[tony@atomide.com: updated comments to include the breaking commit]
Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>ARM: OMAP1: dmtimer: conversion to platform devices</title>
<updated>2011-09-21T22:50:31Z</updated>
<author>
<name>Tarun Kanti DebBarma</name>
</author>
<published>2011-09-20T11:30:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97933d6ced601de013f17ad3f589e72cf2266bba'/>
<id>urn:sha1:97933d6ced601de013f17ad3f589e72cf2266bba</id>
<content type='text'>
Convert OMAP1 dmtimers into a platform devices and then registers with
device model framework so that it can be bound to corresponding driver.

Signed-off-by: Thara Gopinath &lt;thara@ti.com&gt;
Signed-off-by: Tarun Kanti DebBarma &lt;tarun.kanti@ti.com&gt;
Reviewed-by: Santosh Shilimkar &lt;santosh.shilimkar@ti.com&gt;
Acked-by: Cousson, Benoit &lt;b-cousson@ti.com&gt;
Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
</content>
</entry>
</feed>
