<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/rtc, branch v2.6.32.1</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/rtc?h=v2.6.32.1</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/rtc?h=v2.6.32.1'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2009-12-02T00:32:20Z</updated>
<entry>
<title>rtc-x1205: reset clock to sane state after power failure</title>
<updated>2009-12-02T00:32:20Z</updated>
<author>
<name>Johannes Weiner</name>
<email>jw@emlix.com</email>
</author>
<published>2009-12-01T21:17:49Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cb8799eeddd542abd504c62c11014dfbaec7f3a1'/>
<id>urn:sha1:cb8799eeddd542abd504c62c11014dfbaec7f3a1</id>
<content type='text'>
When detecting power failure, the probe function would reset the clock
time to defined state.

However, the clock's _date_ might still be bogus and a subsequent probe
fails when sanity-checking these values.

Change the power-failure fixup code to do a full setting of rtc_time,
including a valid date.

Signed-off-by: Johannes Weiner &lt;jw@emlix.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Paul Gortmaker &lt;p_gortmaker@yahoo.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>
</entry>
<entry>
<title>rtc-x1205: fix rtc_time to y2k register value conversion</title>
<updated>2009-12-02T00:32:20Z</updated>
<author>
<name>Johannes Weiner</name>
<email>jw@emlix.com</email>
</author>
<published>2009-12-01T21:17:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=48a7f7746875425797aea31ed2910088635c1c7a'/>
<id>urn:sha1:48a7f7746875425797aea31ed2910088635c1c7a</id>
<content type='text'>
The possible CCR_Y2K register values are 19 or 20 and struct rtc_time's
tm_year is in years since 1900.

The function translating rtc_time to register values assumes tm_year to be
years since first christmas, though, and we end up storing 0 or 1 in the
CCR_Y2K register, which the hardware does not refuse to do.

A subsequent probing of the clock fails due to the invalid value range in
the register, though.

[ And if it didn't, reading the clock would yield a bogus year because
  the function translating registers to tm_year is assuming a register
  value of 19 or 20. ]

This fixes the conversion from years since 1900 in tm_year to the
corresponding CCR_Y2K value of 19 or 20.

Signed-off-by: Johannes Weiner &lt;jw@emlix.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Paul Gortmaker &lt;p_gortmaker@yahoo.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>
</entry>
<entry>
<title>drivers/rtc/rtc-pcf50633.c: fix use after free in pcf50633_rtc_probe()</title>
<updated>2009-12-02T00:32:19Z</updated>
<author>
<name>Dan Carpenter</name>
<email>error27@gmail.com</email>
</author>
<published>2009-12-01T21:17:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fa00e106eb6f082654d822a0946c0c86297ede2c'/>
<id>urn:sha1:fa00e106eb6f082654d822a0946c0c86297ede2c</id>
<content type='text'>
"rtc" is freed and then dereferenced on the next line.  This patch fixes
that.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Acked-by: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: David Brownell &lt;david-b@pacbell.net&gt;
Cc: Paul Gortmaker &lt;p_gortmaker@yahoo.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>
</entry>
<entry>
<title>ARM: 5787/1: U300 COH 901 331 fixes</title>
<updated>2009-11-16T16:15:49Z</updated>
<author>
<name>Linus Walleij</name>
<email>linus.walleij@stericsson.com</email>
</author>
<published>2009-11-14T00:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=378ce74bee4cb0183489bc0f850790a2264ca975'/>
<id>urn:sha1:378ce74bee4cb0183489bc0f850790a2264ca975</id>
<content type='text'>
This will fix some small issues with the COH 901 331 RTC driver:
- Interrupt is disabled after alarm so that we don't fire
  multiple interrupts.
- We return 0 from the coh901331_alarm_irq_enable() ridding
  a compile warning.
- We alter the name in the U300 device registry to match that
  of the driver so they sucessfully resolve.

Signed-off-by: Linus Walleij &lt;linus.walleij@stericsson.com&gt;
Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>rtc: v3020: fix v3020_mmio_read_bit()</title>
<updated>2009-11-12T15:25:59Z</updated>
<author>
<name>Scott Valentine</name>
<email>svalentine@concentris-systems.com</email>
</author>
<published>2009-11-11T22:26:49Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=bcb3a1676b87effbdeffe8da5c44f63433d158d9'/>
<id>urn:sha1:bcb3a1676b87effbdeffe8da5c44f63433d158d9</id>
<content type='text'>
v3020_mmio_read_bit() always returns 0 when left_shift &gt; 7.

v3020_mmio_read_bit()'s return type is (unsigned char).  The code returns
a value masked by (1 &lt;&lt; left_shift) that is casted to the return type.  If
left_shift is larger than 7, the cast will always result in a 0 return
value.  The problem was discovered with left_shift = 16, and the included
patch corrects the problem.

The bug was introduced in the last (Apr 3 2009) commit of the file, kernel
versions 2.6.30 and later.

Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Paul Gortmaker &lt;p_gortmaker@yahoo.com&gt;
Cc: Raphael Assenat &lt;raph@8d.com&gt;
Cc: &lt;stable@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>rtc-vr41xx: fix do_div() warning</title>
<updated>2009-11-12T15:25:58Z</updated>
<author>
<name>Yoichi Yuasa</name>
<email>yuasa@linux-mips.org</email>
</author>
<published>2009-11-11T22:26:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=61df33370c52633b47d794f5e024eb15ca9a2efe'/>
<id>urn:sha1:61df33370c52633b47d794f5e024eb15ca9a2efe</id>
<content type='text'>
drivers/rtc/rtc-vr41xx.c: In function 'vr41xx_rtc_irq_set_freq':
drivers/rtc/rtc-vr41xx.c:217: warning: comparison of distinct pointer types lacks a cast
drivers/rtc/rtc-vr41xx.c:217: warning: right shift count &gt;= width of type
drivers/rtc/rtc-vr41xx.c:217: warning: passing argument 1 of '__div64_32' from incompatible pointer type
include/asm-generic/div64.h:35: note: expected 'uint64_t *' but argument is of type 'long unsigned int *'

Signed-off-by: Yoichi Yuasa &lt;yuasa@linux-mips.org&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Paul Gortmaker &lt;p_gortmaker@yahoo.com&gt;
Cc: Paul Mundt &lt;lethal@linux-sh.org&gt;
Cc: David Brownell &lt;dbrownell@users.sourceforge.net&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>rtc: pcf50633: consider alrm-&gt;enable in pcf50633_rtc_set_alarm</title>
<updated>2009-11-12T15:25:57Z</updated>
<author>
<name>Werner Almesberger</name>
<email>werner@openmoko.org</email>
</author>
<published>2009-11-11T22:26:40Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=05f45d7d746d07c95588871abf933334856c1a3b'/>
<id>urn:sha1:05f45d7d746d07c95588871abf933334856c1a3b</id>
<content type='text'>
According to Documentation/rtc.txt, RTC_WKALM_SET sets the alarm time and
enables/disables the alarm.  We implement RTC_WKALM_SET through
pcf50633_rtc_set_alarm.  The enabling/disabling part was missing.

Signed-off-by: Werner Almesberger &lt;werner@openmoko.org&gt;
Reported-by: Michael 'Mickey' Lauer &lt;mickey@openmoko.org&gt;
Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Cc: Paul Gortmaker &lt;p_gortmaker@yahoo.com&gt;
Cc: Balaji Rao &lt;balajirrao@openmoko.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;
</content>
</entry>
<entry>
<title>rtc: pcf50633: fix month off-by-one error</title>
<updated>2009-11-12T15:25:57Z</updated>
<author>
<name>Rask Ingemann Lambertsen</name>
<email>rask@sygehus.dk</email>
</author>
<published>2009-11-11T22:26:36Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=265f2a057bf6b567a32bb16dc8b1765cf0555d9f'/>
<id>urn:sha1:265f2a057bf6b567a32bb16dc8b1765cf0555d9f</id>
<content type='text'>
The PCF50633 stores a month value of 1-12, but the kernel wants 0-11.

Signed-off-by: Rask Ingemann Lambertsen &lt;rask@sygehus.dk&gt;
Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Cc: Paul Gortmaker &lt;p_gortmaker@yahoo.com&gt;
Cc: Balaji Rao &lt;balajirrao@openmoko.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;
</content>
</entry>
<entry>
<title>headers: remove sched.h from interrupt.h</title>
<updated>2009-10-11T18:20:58Z</updated>
<author>
<name>Alexey Dobriyan</name>
<email>adobriyan@gmail.com</email>
</author>
<published>2009-10-07T13:09:06Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d43c36dc6b357fa1806800f18aa30123c747a6d1'/>
<id>urn:sha1:d43c36dc6b357fa1806800f18aa30123c747a6d1</id>
<content type='text'>
After m68k's task_thread_info() doesn't refer to current,
it's possible to remove sched.h from interrupt.h and not break m68k!
Many thanks to Heiko Carstens for allowing this.

Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'origin' into for-linus</title>
<updated>2009-09-24T20:22:33Z</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@arm.linux.org.uk</email>
</author>
<published>2009-09-24T20:22:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=baea7b946f00a291b166ccae7fcfed6c01530cc6'/>
<id>urn:sha1:baea7b946f00a291b166ccae7fcfed6c01530cc6</id>
<content type='text'>
Conflicts:
	MAINTAINERS
</content>
</entry>
</feed>
