<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/rtc/rtc-mc13xxx.c, branch v3.4.39</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>drivers/rtc/rtc-mc13xxx.c: make mc13xxx_rtc_idtable static</title>
<updated>2012-01-11T00:30:53+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2012-01-10T23:10:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a46481d7af1e6c59c03f3ddac400d9054f804952'/>
<id>a46481d7af1e6c59c03f3ddac400d9054f804952</id>
<content type='text'>
Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Acked-by: Jean-Christophe PLAGNIOL-VILLARD &lt;plagnioj@jcrosoft.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Acked-by: Jean-Christophe PLAGNIOL-VILLARD &lt;plagnioj@jcrosoft.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/rtc/rtc-mc13xxx.c: move probe and remove callbacks to .init.text and .exit.text</title>
<updated>2011-11-02T23:06:58+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2011-11-02T20:37:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=db5cf8d1ac4ac3fa06d89345154ce20068aeb097'/>
<id>db5cf8d1ac4ac3fa06d89345154ce20068aeb097</id>
<content type='text'>
The driver is added using platform_driver_probe(), so the callbacks can be
discarded more aggessively.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The driver is added using platform_driver_probe(), so the callbacks can be
discarded more aggessively.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: mc13xxx: Don't call rtc_device_register while holding lock</title>
<updated>2011-05-07T01:02:07+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2011-05-06T09:57:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=156229b352b999cafb86a21b50912975e39b7f44'/>
<id>156229b352b999cafb86a21b50912975e39b7f44</id>
<content type='text'>
Since commit f44f7f9 (RTC: Initialize kernel state from RTC)
rtc_device_register reads the programmed alarm. As reading the alarm
needs to take the mc13xxx lock, release it before calling
rtc_device_register.

This fixes a deadlock during boot:

	INFO: task swapper:1 blocked for more than 120 seconds.
	"echo 0 &gt; /proc/sys/kernel/hung_task_timeout_secs" disables this message.
	swapper         D c02b175c     0     1      0 0x00000000
	[&lt;c02b175c&gt;] (schedule+0x304/0x4f4) from [&lt;c02b25a8&gt;] (__mutex_lock_slowpath+0x7c/0x110)
	[&lt;c02b25a8&gt;] (__mutex_lock_slowpath+0x7c/0x110) from [&lt;c020b4cc&gt;] (mc13xxx_rtc_read_time+0x1c/0x118)
	[&lt;c020b4cc&gt;] (mc13xxx_rtc_read_time+0x1c/0x118) from [&lt;c0208f04&gt;] (__rtc_read_time+0x58/0x5c)
	[&lt;c0208f04&gt;] (__rtc_read_time+0x58/0x5c) from [&lt;c0209508&gt;] (rtc_read_time+0x30/0x48)
	[&lt;c0209508&gt;] (rtc_read_time+0x30/0x48) from [&lt;c0209dd4&gt;] (__rtc_read_alarm+0x1c/0x290)
	[&lt;c0209dd4&gt;] (__rtc_read_alarm+0x1c/0x290) from [&lt;c0208d58&gt;] (rtc_device_register+0x150/0x27c)
	[&lt;c0208d58&gt;] (rtc_device_register+0x150/0x27c) from [&lt;c02b0b74&gt;] (mc13xxx_rtc_probe+0x128/0x17c)
	[&lt;c02b0b74&gt;] (mc13xxx_rtc_probe+0x128/0x17c) from [&lt;c01d5280&gt;] (platform_drv_probe+0x1c/0x24)
	[&lt;c01d5280&gt;] (platform_drv_probe+0x1c/0x24) from [&lt;c01d3e58&gt;] (driver_probe_device+0x80/0x1a8)
	[&lt;c01d3e58&gt;] (driver_probe_device+0x80/0x1a8) from [&lt;c01d400c&gt;] (__driver_attach+0x8c/0x90)
	[&lt;c01d400c&gt;] (__driver_attach+0x8c/0x90) from [&lt;c01d3654&gt;] (bus_for_each_dev+0x60/0x8c)
	[&lt;c01d3654&gt;] (bus_for_each_dev+0x60/0x8c) from [&lt;c01d2f6c&gt;] (bus_add_driver+0x180/0x248)
	[&lt;c01d2f6c&gt;] (bus_add_driver+0x180/0x248) from [&lt;c01d4664&gt;] (driver_register+0x70/0x15c)
	[&lt;c01d4664&gt;] (driver_register+0x70/0x15c) from [&lt;c01d5700&gt;] (platform_driver_probe+0x18/0x98)
	[&lt;c01d5700&gt;] (platform_driver_probe+0x18/0x98) from [&lt;c00273a8&gt;] (do_one_initcall+0x2c/0x168)
	[&lt;c00273a8&gt;] (do_one_initcall+0x2c/0x168) from [&lt;c00083ac&gt;] (kernel_init+0xa0/0x150)
	[&lt;c00083ac&gt;] (kernel_init+0xa0/0x150) from [&lt;c0033ff8&gt;] (kernel_thread_exit+0x0/0x8)

Reported-by: Vagrant Cascadian &lt;vagrant@debian.org&gt;
Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Closes: http://bugs.debian.org/625804
[Tweaked commit log -jstultz]
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since commit f44f7f9 (RTC: Initialize kernel state from RTC)
rtc_device_register reads the programmed alarm. As reading the alarm
needs to take the mc13xxx lock, release it before calling
rtc_device_register.

This fixes a deadlock during boot:

	INFO: task swapper:1 blocked for more than 120 seconds.
	"echo 0 &gt; /proc/sys/kernel/hung_task_timeout_secs" disables this message.
	swapper         D c02b175c     0     1      0 0x00000000
	[&lt;c02b175c&gt;] (schedule+0x304/0x4f4) from [&lt;c02b25a8&gt;] (__mutex_lock_slowpath+0x7c/0x110)
	[&lt;c02b25a8&gt;] (__mutex_lock_slowpath+0x7c/0x110) from [&lt;c020b4cc&gt;] (mc13xxx_rtc_read_time+0x1c/0x118)
	[&lt;c020b4cc&gt;] (mc13xxx_rtc_read_time+0x1c/0x118) from [&lt;c0208f04&gt;] (__rtc_read_time+0x58/0x5c)
	[&lt;c0208f04&gt;] (__rtc_read_time+0x58/0x5c) from [&lt;c0209508&gt;] (rtc_read_time+0x30/0x48)
	[&lt;c0209508&gt;] (rtc_read_time+0x30/0x48) from [&lt;c0209dd4&gt;] (__rtc_read_alarm+0x1c/0x290)
	[&lt;c0209dd4&gt;] (__rtc_read_alarm+0x1c/0x290) from [&lt;c0208d58&gt;] (rtc_device_register+0x150/0x27c)
	[&lt;c0208d58&gt;] (rtc_device_register+0x150/0x27c) from [&lt;c02b0b74&gt;] (mc13xxx_rtc_probe+0x128/0x17c)
	[&lt;c02b0b74&gt;] (mc13xxx_rtc_probe+0x128/0x17c) from [&lt;c01d5280&gt;] (platform_drv_probe+0x1c/0x24)
	[&lt;c01d5280&gt;] (platform_drv_probe+0x1c/0x24) from [&lt;c01d3e58&gt;] (driver_probe_device+0x80/0x1a8)
	[&lt;c01d3e58&gt;] (driver_probe_device+0x80/0x1a8) from [&lt;c01d400c&gt;] (__driver_attach+0x8c/0x90)
	[&lt;c01d400c&gt;] (__driver_attach+0x8c/0x90) from [&lt;c01d3654&gt;] (bus_for_each_dev+0x60/0x8c)
	[&lt;c01d3654&gt;] (bus_for_each_dev+0x60/0x8c) from [&lt;c01d2f6c&gt;] (bus_add_driver+0x180/0x248)
	[&lt;c01d2f6c&gt;] (bus_add_driver+0x180/0x248) from [&lt;c01d4664&gt;] (driver_register+0x70/0x15c)
	[&lt;c01d4664&gt;] (driver_register+0x70/0x15c) from [&lt;c01d5700&gt;] (platform_driver_probe+0x18/0x98)
	[&lt;c01d5700&gt;] (platform_driver_probe+0x18/0x98) from [&lt;c00273a8&gt;] (do_one_initcall+0x2c/0x168)
	[&lt;c00273a8&gt;] (do_one_initcall+0x2c/0x168) from [&lt;c00083ac&gt;] (kernel_init+0xa0/0x150)
	[&lt;c00083ac&gt;] (kernel_init+0xa0/0x150) from [&lt;c0033ff8&gt;] (kernel_thread_exit+0x0/0x8)

Reported-by: Vagrant Cascadian &lt;vagrant@debian.org&gt;
Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Closes: http://bugs.debian.org/625804
[Tweaked commit log -jstultz]
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/rtc/rtc-mc13xxx.c: fix unterminated platform_device_id table</title>
<updated>2011-04-14T23:06:54+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2011-04-14T22:21:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c344180c9e77145a9e7eab0050169c68afae04b2'/>
<id>c344180c9e77145a9e7eab0050169c68afae04b2</id>
<content type='text'>
The platform_device_id table is supposed to be zero-terminated.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The platform_device_id table is supposed to be zero-terminated.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>RTC: Cleanup rtc_class_ops-&gt;update_irq_enable()</title>
<updated>2011-03-09T19:23:37+00:00</updated>
<author>
<name>John Stultz</name>
<email>john.stultz@linaro.org</email>
</author>
<published>2011-02-03T20:13:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=51ba60c5bb3b0f71bee26404ddc22d8e4109e88a'/>
<id>51ba60c5bb3b0f71bee26404ddc22d8e4109e88a</id>
<content type='text'>
Now that the generic code handles UIE mode irqs via periodic
alarm interrupts, no one calls the
rtc_class_ops-&gt;update_irq_enable() method anymore.

This patch removes the driver hooks and implementations of
update_irq_enable if no one else is calling it.

CC: Thomas Gleixner &lt;tglx@linutronix.de&gt;
CC: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
CC: Marcelo Roberto Jimenez &lt;mroberto@cpti.cetuc.puc-rio.br&gt;
CC: rtc-linux@googlegroups.com
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that the generic code handles UIE mode irqs via periodic
alarm interrupts, no one calls the
rtc_class_ops-&gt;update_irq_enable() method anymore.

This patch removes the driver hooks and implementations of
update_irq_enable if no one else is calling it.

CC: Thomas Gleixner &lt;tglx@linutronix.de&gt;
CC: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
CC: Marcelo Roberto Jimenez &lt;mroberto@cpti.cetuc.puc-rio.br&gt;
CC: rtc-linux@googlegroups.com
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: Add support for the rtc found in the MC13892 PMIC</title>
<updated>2010-10-28T22:30:01+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2010-10-28T10:30:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=1c97872b80691f6bd3e46ec431a0d59dc75cb8da'/>
<id>1c97872b80691f6bd3e46ec431a0d59dc75cb8da</id>
<content type='text'>
The mfd driver for MC13783 recently got support for MC13892 and was
renamed accordingly from mc13783-core to mc13xxx-core.  Do the same for
rtc-mc13783.

The only relevant change is to use platform id's to tell the platform bus
that this driver is responsible for mc13892-rtc devices, too.

Acked-by: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The mfd driver for MC13783 recently got support for MC13892 and was
renamed accordingly from mc13783-core to mc13xxx-core.  Do the same for
rtc-mc13783.

The only relevant change is to use platform id's to tell the platform bus
that this driver is responsible for mc13892-rtc devices, too.

Acked-by: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
