<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/rtc, branch v2.6.20</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.20</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.20'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2007-01-26T21:51:00Z</updated>
<entry>
<title>[PATCH] remove __devinit markings from rtc_sysfs_add_device()</title>
<updated>2007-01-26T21:51:00Z</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2007-01-26T08:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a8d814b5dd7a1bc5c19ae32d35b8bd4d8a510eae'/>
<id>urn:sha1:a8d814b5dd7a1bc5c19ae32d35b8bd4d8a510eae</id>
<content type='text'>
rtc_sysfs_add_device is needed even after dev initialization, so drop __devinit.

Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Acked-by: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rtc-sh: act on rtc_wkalrm.enabled when setting an alarm</title>
<updated>2007-01-23T15:52:06Z</updated>
<author>
<name>Jamie Lenehan</name>
<email>lenehan@twibble.org</email>
</author>
<published>2007-01-23T04:40:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=15c945c3d0913d73a7d57d7a0a3c4e2902598cc6'/>
<id>urn:sha1:15c945c3d0913d73a7d57d7a0a3c4e2902598cc6</id>
<content type='text'>
This fixes the SH rtc driver correctly act on the "enabled" flag when
setting an alarm.

Signed-off-by: Jamie Lenehan &lt;lenehan@twibble.org&gt;
Cc: David Brownell &lt;david-b@pacbell.net&gt;
Cc: Alessandro Zummo &lt;alessandro.zummo@towertech.it&gt;
Cc: Paul Mundt &lt;lethal@linux-sh.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rtc-sh: correctly report rtc_wkalrm.enabled</title>
<updated>2007-01-12T02:18:20Z</updated>
<author>
<name>David Brownell</name>
<email>david-b@pacbell.net</email>
</author>
<published>2007-01-11T07:15:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0d103e90f63c4b78f2101f8c0bd303fa049ce9a7'/>
<id>urn:sha1:0d103e90f63c4b78f2101f8c0bd303fa049ce9a7</id>
<content type='text'>
This fixes the SH rtc driver to
  (a) correctly report 'enabled' status with other alarm status;
  (b) not duplicate that status in its procfs dump

Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Acked-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Update the rtc-rs5c372 driver</title>
<updated>2007-01-06T07:55:23Z</updated>
<author>
<name>David Brownell</name>
<email>david-b@pacbell.net</email>
</author>
<published>2007-01-06T00:36:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=cb26b572dc39467ba0969d1a76c2f723d2d6a2a6'/>
<id>urn:sha1:cb26b572dc39467ba0969d1a76c2f723d2d6a2a6</id>
<content type='text'>
 Bugfixes:
  - Handle RTCs which are configured to use 12-hour mode.
  - Never report bogus/un-initialized times.
  - Displaying "raw trim" requires not masking it first!
  - Fix the sysfs and procfs display of crystal and trim data.

 Features:
  - Handle other RTCs in this family, notably rv5c386/rv5c387.
  - Declare the other registers.
  - Provide alarm get/set functionality.
  - Handle AIE and UIE; but no IRQ handling yet.

 Cleanup:
  - Shrink object by not including needless sysfs or procfs support
  - We don't need no steenkin' forward declarations.  (Except one.)

Until the I2C framework merges "new style" driver support, matching
the driver model better, using rv5c chips or alarm IRQs requires a
separate board-specific patch.  (And an IRQ handler, handing off labor
through a work_struct...)

This uses the "method 3" register reads, but notes that it's done
to work around an evident i2c adapter driver bug.

Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Acked-by: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rtc-at91rm9200 build fix</title>
<updated>2007-01-06T07:55:22Z</updated>
<author>
<name>David Brownell</name>
<email>david-b@pacbell.net</email>
</author>
<published>2007-01-06T00:36:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d73e3cd73c058ce792ad276f979680aa331f4f8e'/>
<id>urn:sha1:d73e3cd73c058ce792ad276f979680aa331f4f8e</id>
<content type='text'>
The at91rm9200 RTC driver needs some assistance to build, because of recent
header file rearrangement.

Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Cc: Alessandro Zummo &lt;alessandro.zummo@towertech.it&gt;
Cc: Andrew Victor &lt;andrew@sanpeople.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rtc framewok: rtc_wkalrm.enabled reporting updates</title>
<updated>2006-12-13T17:05:52Z</updated>
<author>
<name>David Brownell</name>
<email>david-b@pacbell.net</email>
</author>
<published>2006-12-13T08:35:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a2db8dfce8d94fecae50128d912fec7980687a51'/>
<id>urn:sha1:a2db8dfce8d94fecae50128d912fec7980687a51</id>
<content type='text'>
Fix a glitch in the procfs dumping of whether the alarm IRQ is enabled: use
the traditional name (from drivers/char/rtc.c and many other places) of
"alarm_IRQ", not "alrm_wakeup" (which didn't even match the efirtc code, which
originated that reporting API).

Also, update a few of the RTC drivers to stop providing that duplicate status,
and/or to expose it properly when reporting the alarm state.  We really don't
want every RTC driver doing their own thing here...

Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Acked-by: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rtc: remove syslog spam on registration</title>
<updated>2006-12-13T17:05:52Z</updated>
<author>
<name>David Brownell</name>
<email>david-b@pacbell.net</email>
</author>
<published>2006-12-13T08:35:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5a6534e4cf53e16a6ea92f033f89d6575b3d7422'/>
<id>urn:sha1:5a6534e4cf53e16a6ea92f033f89d6575b3d7422</id>
<content type='text'>
This removes some syslog spam as RTC drivers register; debug messages
shouldn't come out at "info" level.

Signed-off-by: David Brownell &lt;dbrownell@users.sourceforge.net&gt;
Acked-by: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>rtc: rtc-sh: alarm support.</title>
<updated>2006-12-11T23:42:08Z</updated>
<author>
<name>Jamie Lenehan</name>
<email>lenehan@twibble.org</email>
</author>
<published>2006-12-08T06:26:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1b73e6ae45d0353a062d7bea707757a235473cf9'/>
<id>urn:sha1:1b73e6ae45d0353a062d7bea707757a235473cf9</id>
<content type='text'>
This adds alarm support for the RTC_ALM_SET, RTC_ALM_READ,
RTC_WKALM_SET and RTC_WKALM_RD operations to rtc-sh.

The only unusual part is the handling of the alarm interrupt. If you
clear the alarm flag (AF) while the time in the RTC still matches the
time in the alarm registers than AF is immediately re-set, and if the
alarm interrupt (AIE) is still enabled then it re-triggers. I was
originally getting around 20k+ interrupts generated during the second
when the RTC and alarm registers matches.

The solution I've used is to clear AIE when the alarm goes off and
then use the carry interrupt to re-enabled it. The carry interrupt
will check AF and re-enabled AIE if it's clear. If AF is not clear
it'll clear it and then the check will be repeated next carry
interrupt. This a bit in rtc structure that indicates that it's
waiting to have AIE re-enabled so it doesn't turn it on when it
wasn't enabled anyway.

Signed-off-by: Jamie Lenehan &lt;lenehan@twibble.org&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>rtc: rtc-sh: fix rtc for out-by-one for the month.</title>
<updated>2006-12-11T23:42:08Z</updated>
<author>
<name>Jamie Lenehan</name>
<email>lenehan@twibble.org</email>
</author>
<published>2006-12-08T05:49:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a16147965ca7a84dc08c4457961782e06ac7cd0d'/>
<id>urn:sha1:a16147965ca7a84dc08c4457961782e06ac7cd0d</id>
<content type='text'>
The RMONCNT register, which holds the month in the RTC, takes a value
between 1 and 12 while the tm_mon field in the time structures takes
a value between 0 and 11. This wasn't being taken into account in
rtc-sh resulting in the month being out by one.

eg, on my board during boot the RTC is set to:

  RTC is set to Thu Jul 01 09:00:00 1999

but "hwclock -r" immediately after logging in was showing:

  Sun Aug  1 09:01:43 1999  0.000000 seconds

Signed-off-by: Jamie Lenehan &lt;lenehan@twibble.org&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>rtc: rtc-sh: fix for period rtc interrupts.</title>
<updated>2006-12-11T23:42:07Z</updated>
<author>
<name>Jamie Lenehan</name>
<email>lenehan@twibble.org</email>
</author>
<published>2006-12-07T08:23:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=31ccb081ec6c7eedfd7e88a48365c67ce44ecb92'/>
<id>urn:sha1:31ccb081ec6c7eedfd7e88a48365c67ce44ecb92</id>
<content type='text'>
When testing the per second interrupt support (RTC_UIE_ON/RTC_UIE_OFF)
of the new RTC system it would die in sh_rtc_interrupt due to a null
ptr dereference. The following gets it working correctly.

Signed-off-by: Jamie Lenehan &lt;lenehan@twibble.org&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
</feed>
