<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-obmc-linux/drivers/rtc/rtc-ds1307.c, branch v3.4</title>
<subtitle>Talos™ II Linux sources for OpenBMC</subtitle>
<id>https://git.raptorcs.com/git/talos-obmc-linux/atom?h=v3.4</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-obmc-linux/atom?h=v3.4'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/'/>
<updated>2012-04-26T04:26:34+00:00</updated>
<entry>
<title>drivers/rtc/rtc-ds1307.c: fix BUG shown with lock debugging enabled</title>
<updated>2012-04-26T04:26:34+00:00</updated>
<author>
<name>Anatolij Gustschin</name>
<email>agust@denx.de</email>
</author>
<published>2012-04-25T23:01:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-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>rtc: ds1307: generalise ram size and offset</title>
<updated>2012-03-23T23:58:40+00:00</updated>
<author>
<name>Austin Boyle</name>
<email>Austin.Boyle@aviatnet.com</email>
</author>
<published>2012-03-23T22:02:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=9eab0a788d2d6e513f43b7c0e5bb9d60446233cb'/>
<id>urn:sha1:9eab0a788d2d6e513f43b7c0e5bb9d60446233cb</id>
<content type='text'>
Generalise NVRAM to support RAM with other size and offset, such as the
64 bytes of SRAM on the mcp7941x.

[rdunlap@xenotime.net: fix printk format warning]
Signed-off-by: Austin Boyle &lt;Austin.Boyle@aviatnet.com&gt;
Signed-off-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Signed-off-by: Randy Dunlap &lt;rdunlap@xenotime.net&gt;
Cc: David Anders &lt;danders.dev@gmail.com&gt;
Cc: Alessandro Zummo &lt;alessandro.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: ds1307: comment and format cleanup</title>
<updated>2012-03-23T23:58:40+00:00</updated>
<author>
<name>David Anders</name>
<email>x0132446@ti.com</email>
</author>
<published>2012-03-23T22:02:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=40ce972d59fcfd4979e5de04456122447b40c1cf'/>
<id>urn:sha1:40ce972d59fcfd4979e5de04456122447b40c1cf</id>
<content type='text'>
Do some cleanup of the comment sections as well as correct some
formatting issues reported by checkpatch.pl.

Signed-off-by: David Anders &lt;x0132446@ti.com&gt;
Signed-off-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Cc: Austin Boyle &lt;Austin.Boyle@aviatnet.com&gt;
Cc: Alessandro Zummo &lt;alessandro.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: ds1307: simplify irq setup code</title>
<updated>2012-03-23T23:58:40+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>w.sang@pengutronix.de</email>
</author>
<published>2012-03-23T22:02:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=b24a7267709bb0adb694364572478f919e9c7390'/>
<id>urn:sha1:b24a7267709bb0adb694364572478f919e9c7390</id>
<content type='text'>
No need to have two seperate if-blocks for setting up the irq.

Signed-off-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Tested-by: David Anders &lt;danders.dev@gmail.com&gt;
Cc: Austin Boyle &lt;Austin.Boyle@aviatnet.com&gt;
Cc: Alessandro Zummo &lt;alessandro.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: ds1307: refactor chip_desc table</title>
<updated>2012-03-23T23:58:40+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>w.sang@pengutronix.de</email>
</author>
<published>2012-03-23T22:02:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=32d322bcb0d6886084197247e30aa130956d5978'/>
<id>urn:sha1:32d322bcb0d6886084197247e30aa130956d5978</id>
<content type='text'>
The chip_desc table is suboptimal.  Currently it requires an entry for
every new chip type, even if it is empty.  This has already been
forgotten for the ds1388.  Refactor the code, so new entries are only
needed, when they chip type really needs a (non-empty) description.
Also make the table visually more appealing.

Signed-off-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Cc: Austin Boyle &lt;Austin.Boyle@aviatnet.com&gt;
Cc: David Anders &lt;danders.dev@gmail.com&gt;
Cc: Alessandro Zummo &lt;alessandro.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: convert rtc i2c drivers to module_i2c_driver</title>
<updated>2012-03-23T23:58:39+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2012-03-23T22:02:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=0abc920116303e81702a38429a1b61a896e02b37'/>
<id>urn:sha1:0abc920116303e81702a38429a1b61a896e02b37</id>
<content type='text'>
Factor out some boilerplate code for i2c driver registration into
module_i2c_driver.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Cc: Piotr Ziecik &lt;kosmo@semihalf.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Scott Wood &lt;scottwood@freescale.com&gt;
Cc: Srikanth Srinivasan &lt;srikanth.srinivasan@freescale.com&gt;
Cc: Mike Rapoport &lt;mike@compulab.co.il&gt;
Cc: Sergey Lapin &lt;slapin@ossfans.org&gt;
Cc: Roman Fietze &lt;roman.fietze@telemotive.de&gt;
Cc: Herbert Valerio Riedel &lt;hvr@gnu.org&gt;
Cc: Alexander Bigga &lt;ab@mycable.de&gt;
Cc: Dale Farnsworth &lt;dale@farnsworth.org&gt;
Cc: Gregory Hermant &lt;gregory.hermant@calao-systems.com&gt;
Cc: Wolfgang Grandegger &lt;wg@grandegger.com&gt;
Cc: Martyn Welch &lt;martyn.welch@ge.com&gt;
Cc: Byron Bradley &lt;byron.bbradley@gmail.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: add initial support for mcp7941x parts</title>
<updated>2011-11-02T23:06:58+00:00</updated>
<author>
<name>David Anders</name>
<email>danders.dev@gmail.com</email>
</author>
<published>2011-11-02T20:37:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=43fcb81550f7a16be192b19c77a379c9b27b1585'/>
<id>urn:sha1:43fcb81550f7a16be192b19c77a379c9b27b1585</id>
<content type='text'>
Add initial support for the microchip mcp7941x series of real time clocks.

The mcp7941x series is generally compatible with the ds1307 and ds1337 rtc
devices from dallas semiconductor.  minor differences include a backup
battery enable bit, and the polarity of the oscillator enable bit.

Signed-off-by: David Anders &lt;danders.dev@gmail.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Reviewed-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-ds1307.c: add support for RTC device pt7c4338</title>
<updated>2011-06-28T01:00:12+00:00</updated>
<author>
<name>Priyanka Jain</name>
<email>Priyanka.Jain@freescale.com</email>
</author>
<published>2011-06-27T23:18:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=31c1771cdbf0edea96e109e24dae387d331b6d96'/>
<id>urn:sha1:31c1771cdbf0edea96e109e24dae387d331b6d96</id>
<content type='text'>
PT7C4338 chip is being manufactured by Pericom Technology Inc.  It is a
serial real-time clock which provides:

1) Low-power clock/calendar.
2) Programmable square-wave output.

It has 56 bytes of nonvolatile RAM.  Its register set is same as that of
rtc device: DS1307.

Signed-off-by: Priyanka Jain &lt;Priyanka.Jain@freescale.com&gt;
Acked-by: Timur Tabi &lt;timur@freescale.com&gt;
Reviewed-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>RTC: Convert rtc drivers to use the alarm_irq_enable method</title>
<updated>2011-02-03T21:02:35+00:00</updated>
<author>
<name>John Stultz</name>
<email>john.stultz@linaro.org</email>
</author>
<published>2011-02-03T01:02:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=16380c153a69c3784d2afaddfe0a22f353046cf6'/>
<id>urn:sha1:16380c153a69c3784d2afaddfe0a22f353046cf6</id>
<content type='text'>
Some rtc drivers use the ioctl method instead of the alarm_irq_enable
method for enabling alarm interupts. With the new virtualized RTC
rework, its important for drivers to use the alarm_irq_enable instead.

This patch converts the drivers that use the AIE ioctl method to
use the alarm_irq_enable method. Other ioctl cmds are left untouched.

I have not been able to test or even compile most of these drivers.
Any help to make sure this change is correct would be appreciated!

CC: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
CC: Thomas Gleixner &lt;tglx@linutronix.de&gt;
CC: Marcelo Roberto Jimenez &lt;mroberto@cpti.cetuc.puc-rio.br&gt;
Reported-by: Marcelo Roberto Jimenez &lt;mroberto@cpti.cetuc.puc-rio.br&gt;
Tested-by: Marcelo Roberto Jimenez &lt;mroberto@cpti.cetuc.puc-rio.br&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
</content>
</entry>
<entry>
<title>i2c: Constify i2c_client where possible</title>
<updated>2011-01-10T21:11:23+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2011-01-10T21:11:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=0cc43a1806f078f7fd414850d8f1f1761696e4af'/>
<id>urn:sha1:0cc43a1806f078f7fd414850d8f1f1761696e4af</id>
<content type='text'>
Helper functions for I2C and SMBus transactions don't modify the
i2c_client that is passed to them, so it can be marked const.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
</feed>
