<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/rtc/rtc-pcf8563.c, branch v4.5</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=v4.5</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.5'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-11-08T13:12:29Z</updated>
<entry>
<title>rtc: pcf8563: add CLKOUT to common clock framework</title>
<updated>2015-11-08T13:12:29Z</updated>
<author>
<name>Heiko Schocher</name>
<email>hs@denx.de</email>
</author>
<published>2015-10-16T11:31:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a39a6405d5f949bc651694028a55d74c514ef1f9'/>
<id>urn:sha1:a39a6405d5f949bc651694028a55d74c514ef1f9</id>
<content type='text'>
Add the clkout output clk to the common clock framework.
Disable the CLKOUT of the RTC after power-up.
After power-up/reset of the RTC, CLKOUT is enabled by default,
with CLKOUT enabled the RTC chip has 2-3 times higher power
consumption.

Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: Drop owner assignment from i2c_driver</title>
<updated>2015-09-05T11:19:06Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>k.kozlowski@samsung.com</email>
</author>
<published>2015-07-10T06:39:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b28845433eb9c205c381ed69b09167d6ae5aac1c'/>
<id>urn:sha1:b28845433eb9c205c381ed69b09167d6ae5aac1c</id>
<content type='text'>
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: pfc8563: fix uninitialized variable warning</title>
<updated>2015-06-24T23:13:46Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2015-05-12T21:27:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=cd1420d3a90944e677987ca8c56f1cd22ecd1b51'/>
<id>urn:sha1:cd1420d3a90944e677987ca8c56f1cd22ecd1b51</id>
<content type='text'>
Gcc is unable to prove that alm_pending is always initialized
when it is used, so it prints a harmless warning:

drivers/rtc/rtc-pcf8563.c: In function 'pcf8563_probe':
drivers/rtc/rtc-pcf8563.c:449:5: warning: 'alm_pending' may be used uninitialized in this function [-Wmaybe-uninitialized]

This uses the same conditional expression that is used inside of
the pcf8563_get_alarm_mode() function, to help gcc figure it out
and shut up that warning, and make the ARM defconfigs build again
with no warnings.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Fixes: a45d528aab8b ("rtc: pcf8563: clear expired alarm at boot time")
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: pcf8563: Replace deprecated rtc_time_to_tm() and rtc_tm_to_time()</title>
<updated>2015-06-24T23:13:41Z</updated>
<author>
<name>Xunlei Pang</name>
<email>pang.xunlei@linaro.org</email>
</author>
<published>2015-06-12T02:04:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=626fea046b49490cdd8c917911437737c1f904a8'/>
<id>urn:sha1:626fea046b49490cdd8c917911437737c1f904a8</id>
<content type='text'>
pcf8563_rtc_set_alarm() uses deprecated rtc_tm_to_time()
and rtc_time_to_tm(), which will overflow in year 2106
on 32-bit machines.

This patch solves this by:
 - Replacing rtc_time_to_tm() with rtc_time64_to_tm()
 - Replacing rtc_tm_to_time() with rtc_tm_to_time64()

Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Xunlei Pang &lt;pang.xunlei@linaro.org&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: pcf8563 fix: return -EINVAL if we read an invalid time.</title>
<updated>2015-06-24T23:13:40Z</updated>
<author>
<name>Jan Kardell</name>
<email>jan.kardell@telliq.com</email>
</author>
<published>2015-05-28T06:48:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=538330ccb93849530f5617d1fa870237496caa60'/>
<id>urn:sha1:538330ccb93849530f5617d1fa870237496caa60</id>
<content type='text'>
Return -EINVAL if the voltage low bit is set to avoid getting a bogus
time at boot.
There was a comment stating that util-linux hwclock refuses to set a
new time if we return an error code on read, but at least the current
version do set the time as expected. Remove the comment and the check
for valid time, and let the rtc core check it for us.

Signed-off-by: Jan Kardell &lt;jan.kardell@telliq.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>drivers/rtc/rtc-pcf8563.c: simplify return from function</title>
<updated>2015-04-17T13:03:59Z</updated>
<author>
<name>Robert Kmiec</name>
<email>robert.r.kmiec@gmail.com</email>
</author>
<published>2015-04-16T19:45:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b0c57b5941c4a42698d845ada6a76feeba2d1be9'/>
<id>urn:sha1:b0c57b5941c4a42698d845ada6a76feeba2d1be9</id>
<content type='text'>
This commit does not change any logic here.  It just makes the code easier
to read.

This is how it looked like:
If err != 0 return err;
else return 0;

Signed-off-by: Robert Kmiec &lt;robert.r.kmiec@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: pcf8563: clear expired alarm at boot time</title>
<updated>2014-12-11T01:41:15Z</updated>
<author>
<name>Jan Kardell</name>
<email>jan.kardell@telliq.com</email>
</author>
<published>2014-12-10T23:53:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a45d528aab8bcde68476b99403311422c91dc20a'/>
<id>urn:sha1:a45d528aab8bcde68476b99403311422c91dc20a</id>
<content type='text'>
In case the card is woken up of the rtc alarm, the
devm_rtc_device_register function detects it as a pending alarm about a
month in the future.  Fix this by clearing the alarm in module probe.

Signed-off-by: Jan Kardell &lt;jan.kardell@telliq.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Grant Likely &lt;grant.likely@linaro.org&gt;
Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: Vincent Donnefort &lt;vdonnefort@gmail.com&gt;
Cc: Dan Carpenter &lt;dan.carpenter@oracle.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: pcf8563: save battery power</title>
<updated>2014-12-11T01:41:15Z</updated>
<author>
<name>Jan Kardell</name>
<email>jan.kardell@telliq.com</email>
</author>
<published>2014-12-10T23:53:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ff0bc5013aca55004034bb366232f8d2b5c6763c'/>
<id>urn:sha1:ff0bc5013aca55004034bb366232f8d2b5c6763c</id>
<content type='text'>
According to Haoyu hym8563 datasheet this saves som power.  Might be
importat to battery life.  And maybe it works for the NXP part as well.

Signed-off-by: Jan Kardell &lt;jan.kardell@telliq.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Grant Likely &lt;grant.likely@linaro.org&gt;
Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: Vincent Donnefort &lt;vdonnefort@gmail.com&gt;
Cc: Dan Carpenter &lt;dan.carpenter@oracle.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: pcf8563: handle consequeces of lacking second alarm reg</title>
<updated>2014-12-11T01:41:15Z</updated>
<author>
<name>Jan Kardell</name>
<email>jan.kardell@telliq.com</email>
</author>
<published>2014-12-10T23:53:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=599cda555c1bf6ba9b98e28f707f7b27c8276796'/>
<id>urn:sha1:599cda555c1bf6ba9b98e28f707f7b27c8276796</id>
<content type='text'>
To guarantee that a set alarm occurs in the future, the set alarm time
is rounded up to the nearest minute.  Also we cannot handle UIE as it
requires second precision.

Signed-off-by: Jan Kardell &lt;jan.kardell@telliq.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Grant Likely &lt;grant.likely@linaro.org&gt;
Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: Vincent Donnefort &lt;vdonnefort@gmail.com&gt;
Cc: Dan Carpenter &lt;dan.carpenter@oracle.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: pcf8563: fix wrong time from read_alarm</title>
<updated>2014-12-11T01:41:15Z</updated>
<author>
<name>Jan Kardell</name>
<email>jan.kardell@telliq.com</email>
</author>
<published>2014-12-10T23:53:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c7aef4f88629dcd6efbf9c80c9805625e149c868'/>
<id>urn:sha1:c7aef4f88629dcd6efbf9c80c9805625e149c868</id>
<content type='text'>
Incorrect mask was used for hour and monthday fields.

Signed-off-by: Jan Kardell &lt;jan.kardell@telliq.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Grant Likely &lt;grant.likely@linaro.org&gt;
Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: Vincent Donnefort &lt;vdonnefort@gmail.com&gt;
Cc: Dan Carpenter &lt;dan.carpenter@oracle.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>
</feed>
