<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/rtc, branch v3.4.9</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/rtc?h=v3.4.9</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/rtc?h=v3.4.9'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2012-08-15T15:10:29Z</updated>
<entry>
<title>rtc: wm831x: Feed the write counter into device_add_randomness()</title>
<updated>2012-08-15T15:10:29Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-07-05T20:19:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ec947d6fbb66bc4e55eef7550b4fc835090a42be'/>
<id>urn:sha1:ec947d6fbb66bc4e55eef7550b4fc835090a42be</id>
<content type='text'>
commit 9dccf55f4cb011a7552a8a2749a580662f5ed8ed upstream.

The tamper evident features of the RTC include the "write counter" which
is a pseudo-random number regenerated whenever we set the RTC. Since this
value is unpredictable it should provide some useful seeding to the random
number generator.

Only do this on boot since the goal is to seed the pool rather than add
useful entropy.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Theodore Ts'o &lt;tytso@mit.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>drivers/rtc/rtc-mxc.c: fix irq enabled interrupts warning</title>
<updated>2012-07-16T16:04:44Z</updated>
<author>
<name>Benoît Thébaudeau</name>
<email>benoit.thebaudeau@advansee.com</email>
</author>
<published>2012-07-11T21:02:32Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ae555e19b697bc90ea3ec004dc0e5541983593fa'/>
<id>urn:sha1:ae555e19b697bc90ea3ec004dc0e5541983593fa</id>
<content type='text'>
commit b59f6d1febd6cbe9fae4589bf72da0ed32bc69e0 upstream.

Fixes

  WARNING: at irq/handle.c:146 handle_irq_event_percpu+0x19c/0x1b8()
  irq 25 handler mxc_rtc_interrupt+0x0/0xac enabled interrupts
  Modules linked in:
   (unwind_backtrace+0x0/0xf0) from (warn_slowpath_common+0x4c/0x64)
   (warn_slowpath_common+0x4c/0x64) from (warn_slowpath_fmt+0x30/0x40)
   (warn_slowpath_fmt+0x30/0x40) from (handle_irq_event_percpu+0x19c/0x1b8)
   (handle_irq_event_percpu+0x19c/0x1b8) from (handle_irq_event+0x28/0x38)
   (handle_irq_event+0x28/0x38) from (handle_level_irq+0x80/0xc4)
   (handle_level_irq+0x80/0xc4) from (generic_handle_irq+0x24/0x38)
   (generic_handle_irq+0x24/0x38) from (handle_IRQ+0x30/0x84)
   (handle_IRQ+0x30/0x84) from (avic_handle_irq+0x2c/0x4c)
   (avic_handle_irq+0x2c/0x4c) from (__irq_svc+0x40/0x60)
  Exception stack(0xc050bf60 to 0xc050bfa8)
  bf60: 00000001 00000000 003c4208 c0018e20 c050a000 c050a000 c054a4c8 c050a000
  bf80: c05157a8 4117b363 80503bb4 00000000 01000000 c050bfa8 c0018e2c c000e808
  bfa0: 60000013 ffffffff
   (__irq_svc+0x40/0x60) from (default_idle+0x1c/0x30)
   (default_idle+0x1c/0x30) from (cpu_idle+0x68/0xa8)
   (cpu_idle+0x68/0xa8) from (start_kernel+0x22c/0x26c)

Signed-off-by: Benoît Thébaudeau &lt;benoit.thebaudeau@advansee.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Sascha Hauer &lt;kernel@pengutronix.de&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;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>drivers/rtc/rtc-ab8500.c: use IRQF_ONESHOT when requesting a threaded IRQ</title>
<updated>2012-07-16T16:04:44Z</updated>
<author>
<name>Lee Jones</name>
<email>lee.jones@linaro.org</email>
</author>
<published>2012-07-11T21:02:16Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a61046645665398124b7353999713c02fc4a89eb'/>
<id>urn:sha1:a61046645665398124b7353999713c02fc4a89eb</id>
<content type='text'>
commit 3cfd16a551dc0c188160e1765168a04baf2d3198 upstream.

This driver's IRQ registration is failing because the kernel now forces
IRQs to be ONESHOT if no IRQ handler is passed.

Signed-off-by: Lee Jones &lt;lee.jones@linaro.org&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;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>drivers/rtc/rtc-spear.c: fix use-after-free in spear_rtc_remove()</title>
<updated>2012-07-16T16:04:44Z</updated>
<author>
<name>Devendra Naga</name>
<email>devendra.aaru@gmail.com</email>
</author>
<published>2012-07-11T21:01:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0bf51a8f8756511b382aac13a3c1c7abeb8b0bec'/>
<id>urn:sha1:0bf51a8f8756511b382aac13a3c1c7abeb8b0bec</id>
<content type='text'>
commit 2a643893e50fde71d7ba84b5592ec61b467b9ab6 upstream.

`config' is freed and is then used in the rtc_device_unregister() call,
causing a kernel panic.

Signed-off-by: Devendra Naga &lt;devendra.aaru@gmail.com&gt;
Reviewed-by: Viresh Kumar &lt;viresh.linux@gmail.com&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;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>drivers/rtc/rtc-pl031.c: configure correct wday for 2000-01-01</title>
<updated>2012-05-18T01:00:51Z</updated>
<author>
<name>Rajkumar Kasirajan</name>
<email>rajkumar.kasirajan@stericsson.com</email>
</author>
<published>2012-05-18T00:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c0a5f4a05af588a0f9951f8d24e2564b09501918'/>
<id>urn:sha1:c0a5f4a05af588a0f9951f8d24e2564b09501918</id>
<content type='text'>
The reset date of the ST Micro version of PL031 is 2000-01-01.  The
correct weekday for 2000-01-01 is saturday, but pl031 is initialized to
sunday.  This may lead to alarm malfunction, so configure the correct
wday if RTC_DR indicates reset.

Signed-off-by: Rajkumar Kasirajan &lt;rajkumar.kasirajan@stericsson.com&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Cc: Mattias Wallin &lt;mattias.wallin@stericsson.com&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>
</entry>
<entry>
<title>Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip</title>
<updated>2012-05-04T22:35:09Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-05-04T22:35:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f756beba940ca21755396851521463d494893566'/>
<id>urn:sha1:f756beba940ca21755396851521463d494893566</id>
<content type='text'>
Pull timer fix from Thomas Gleixner.

* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  rtc: Fix possible null pointer dereference in rtc-mpc5121.c
</content>
</entry>
<entry>
<title>rtc: Fix possible null pointer dereference in rtc-mpc5121.c</title>
<updated>2012-04-26T09:17:01Z</updated>
<author>
<name>John Stultz</name>
<email>john.stultz@linaro.org</email>
</author>
<published>2012-04-24T20:43:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e48b5e825f9c471cbcbfd934a4c2df27e9d39635'/>
<id>urn:sha1:e48b5e825f9c471cbcbfd934a4c2df27e9d39635</id>
<content type='text'>
Mark Loard pointed out:
"For example, this beauty from rtc-mpc5121.c in the same update:
   ...
   rtc-&gt;rtc = rtc_device_register("mpc5200-rtc", &amp;op-&gt;dev,
                                   &amp;mpc5200_rtc_ops, THIS_MODULE);
   ...

   rtc-&gt;rtc-&gt;uie_unsupported = 1;    // &lt;&lt;&lt;&lt; Ooops NULL pointer &gt;&gt;&gt;&gt;

   if (IS_ERR(rtc-&gt;rtc)) {           // &lt;&lt;&lt;&lt; this needs to be earlier &gt;&gt;&gt;&gt;
           err = PTR_ERR(rtc-&gt;rtc);
           goto out_free_irq;
   }
   ..."

This patch moves setting the uie_unsupported flag to after we validate
the rtc-&gt;rtc pointer to resolve this.

Reported by: Mark Lord &lt;kernel@teksavvy.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Link: http://lkml.kernel.org/r/1335300215-21427-1-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
</content>
</entry>
<entry>
<title>drivers/rtc/rtc-ds1307.c: fix BUG shown with lock debugging enabled</title>
<updated>2012-04-26T04:26:34Z</updated>
<author>
<name>Anatolij Gustschin</name>
<email>agust@denx.de</email>
</author>
<published>2012-04-25T23:01:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3f5ec5e06d6ca88168277247dbac0ec7b501600f'/>
<id>urn:sha1:3f5ec5e06d6ca88168277247dbac0ec7b501600f</id>
<content type='text'>
Add struct bin_attribute initialization to fix the following bug:

rtc-ds1307 3-0068: rtc core: registered ds1307 as rtc0
BUG: key cfb14fcc not in .data!
------------[ cut here ]------------
WARNING: at kernel/lockdep.c:2986 sysfs_add_file_mode+0x84/0xdc()
Modules linked in:
[&lt;c0018d94&gt;] (unwind_backtrace+0x0/0xf8) from [&lt;c0031f7c&gt;] (warn_slowpath_common+0x4c/0x64)
[&lt;c0031f7c&gt;] (warn_slowpath_common+0x4c/0x64) from [&lt;c0031fb0&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c0031fb0&gt;] (warn_slowpath_null+0x1c/0x24) from [&lt;c012f7ac&gt;] (sysfs_add_file_mode+0x84/0xdc)
[&lt;c012f7ac&gt;] (sysfs_add_file_mode+0x84/0xdc) from [&lt;c04b11e4&gt;] (ds1307_probe+0x5e4/0x6ac)
[&lt;c04b11e4&gt;] (ds1307_probe+0x5e4/0x6ac) from [&lt;c036e600&gt;] (i2c_device_probe+0xdc/0x108)
[&lt;c036e600&gt;] (i2c_device_probe+0xdc/0x108) from [&lt;c02cdf84&gt;] (driver_probe_device+0x90/0x210)
[&lt;c02cdf84&gt;] (driver_probe_device+0x90/0x210) from [&lt;c02ce198&gt;] (__driver_attach+0x94/0x98)
[&lt;c02ce198&gt;] (__driver_attach+0x94/0x98) from [&lt;c02cc824&gt;] (bus_for_each_dev+0x50/0x7c)
[&lt;c02cc824&gt;] (bus_for_each_dev+0x50/0x7c) from [&lt;c02cd780&gt;] (bus_add_driver+0x184/0x244)
[&lt;c02cd780&gt;] (bus_add_driver+0x184/0x244) from [&lt;c02ce43c&gt;] (driver_register+0x78/0x12c)
[&lt;c02ce43c&gt;] (driver_register+0x78/0x12c) from [&lt;c03701ac&gt;] (i2c_register_driver+0x2c/0xb4)
[&lt;c03701ac&gt;] (i2c_register_driver+0x2c/0xb4) from [&lt;c0008798&gt;] (do_one_initcall+0x34/0x178)
[&lt;c0008798&gt;] (do_one_initcall+0x34/0x178) from [&lt;c0691860&gt;] (kernel_init+0xdc/0x194)
[&lt;c0691860&gt;] (kernel_init+0xdc/0x194) from [&lt;c0013cf0&gt;] (kernel_thread_exit+0x0/0x8)

Since commit 6992f5334995af4 ("sysfs: Use one lockdep class per sysfs
attribute") this initialization is required.

Reported-by: Stefano Babic &lt;sbabic@denx.de&gt;
Tested-by: Stefano Babic &lt;sbabic@denx.de&gt;
Signed-off-by: Anatolij Gustschin &lt;agust@denx.de&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
Cc: Eric W. Biederman &lt;ebiederm@xmission.com&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Acked-by: Wolfram Sang &lt;w.sang@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>
</entry>
<entry>
<title>drivers/rtc/rtc-pl031.c: enable clock on all ST variants</title>
<updated>2012-04-12T20:12:12Z</updated>
<author>
<name>Linus Walleij</name>
<email>linus.walleij@linaro.org</email>
</author>
<published>2012-04-12T19:49:16Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2f3972168353d355854d6381f1f360ce83b723e5'/>
<id>urn:sha1:2f3972168353d355854d6381f1f360ce83b723e5</id>
<content type='text'>
The ST variants of the PL031 all require bit 26 in the control register
to be set before they work properly.  Discovered this when testing on
the Nomadik board where it would suprisingly just stand still.

Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Cc: Mian Yousaf Kaukab &lt;mian.yousaf.kaukab@stericsson.com&gt;
Cc: Alessandro Rubini &lt;rubini@unipv.it&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/rtc/rtc-twl.c: use static register while reading time</title>
<updated>2012-04-12T20:12:12Z</updated>
<author>
<name>Konstantin Shlyakhovoy</name>
<email>x0155534@ti.com</email>
</author>
<published>2012-04-12T19:49:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f3ec434c69ac7f447ff6e6389c19727c9f002087'/>
<id>urn:sha1:f3ec434c69ac7f447ff6e6389c19727c9f002087</id>
<content type='text'>
RTC stores time and date in several registers.  Due to the fact that
these registers can't be read instantaneously, there is a chance that
reading from counting registers gives an error of one minute, one hour,
one day, etc.

To address this issue, the RTC has hardware support to copy the RTC
counting registers to static shadowed registers.  The current
implementation does not use this feature, and in a stress test, we can
reproduce this error at a rate of around two times per 300000 readings.

Fix the implementation to ensure that the right snapshot of time is
captured.

Signed-off-by: Konstantin Shlyakhovoy &lt;x0155534@ti.com&gt;
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Benoit Cousson &lt;b-cousson@ti.com&gt;
Cc: linux-omap &lt;linux-omap@vger.kernel.org&gt;
Acked-by: Mykola Oleksiienko &lt;x0174904@ti.com&gt;
Acked-by: Oleksandr Dmytryshyn &lt;oleksandr.dmytryshyn@ti.com&gt;
Acked-by: Graeme Gregory &lt;gg@slimlogic.co.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
