<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/rtc, branch v4.6.3</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v4.6.3</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v4.6.3'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2016-04-21T21:21:00+00:00</updated>
<entry>
<title>rtc: ds1307: Use irq when available for wakeup-source device</title>
<updated>2016-04-21T21:21:00+00:00</updated>
<author>
<name>Nishanth Menon</name>
<email>nm@ti.com</email>
</author>
<published>2016-04-19T16:23:54+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=38a7a73e8ed0fa9e8cd99bb62463afbdcd23429b'/>
<id>urn:sha1:38a7a73e8ed0fa9e8cd99bb62463afbdcd23429b</id>
<content type='text'>
With commit 8bc2a40730ec ("rtc: ds1307: add support for the
DT property 'wakeup-source'") we lost the ability for rtc irq
functionality for devices that are actually hooked on a real IRQ
line and have capability to wakeup as well. This is not an expected
behavior. So, instead of just not requesting IRQ, skip the IRQ
requirement only if interrupts are not defined for the device.

Fixes: 8bc2a40730ec ("rtc: ds1307: add support for the DT property 'wakeup-source'")
Reported-by: Tony Lindgren &lt;tony@atomide.com&gt;
Cc: Michael Lange &lt;linuxstuff@milaw.biz&gt;
Cc: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: ds1307: ds3231 temperature s16 overflow</title>
<updated>2016-04-21T21:20:59+00:00</updated>
<author>
<name>Zhuang Yuyao</name>
<email>mlistz@gmail.com</email>
</author>
<published>2016-04-18T00:21:42+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=9a3dce62cc5640d7ea17733a2bd1b57665c232b0'/>
<id>urn:sha1:9a3dce62cc5640d7ea17733a2bd1b57665c232b0</id>
<content type='text'>
while retrieving temperature from ds3231, the result may be overflow
since s16 is too small for a multiplication with 250.

ie. if temp_buf[0] == 0x2d, the result (s16 temp) will be negative.

Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;
Tested-by: Michael Tatarinov &lt;kukabu@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'rtc-4.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux</title>
<updated>2016-03-25T05:49:08+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2016-03-25T05:49:08+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=8407ef4685895759f111190d091394ef974f52fb'/>
<id>urn:sha1:8407ef4685895759f111190d091394ef974f52fb</id>
<content type='text'>
Pull more RTC updates from Alexandre Belloni:
 "A second pull request for v4.6 with a few fixesi before -rc1.  The new
  features for abx80x actually make the RTC behave correctly.

  Drivers:
   - abx80x: handle both XT and RC oscillators, XT failure bit and
     autocalibration
   - m41t80: avoid out of range year values
   - rv8803: workaround an i2c HW issue"

* tag 'rtc-4.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux:
  rtc: abx80x: handle the oscillator failure bit
  rtc: abx80x: handle autocalibration
  rtc: rv8803: workaround i2c HW issue
  rtc: mcp795: add devicetree support
  rtc: asm9260: remove incorrect __init/__exit annotations
  rtc: m41t80: avoid out of range year values
  rtc: s3c: Don't print an error on probe deferral
  rtc: rv3029: stop mentioning rv3029c2
</content>
</entry>
<entry>
<title>rtc: abx80x: handle the oscillator failure bit</title>
<updated>2016-03-25T01:41:13+00:00</updated>
<author>
<name>Mylène Josserand</name>
<email>mylene.josserand@free-electrons.com</email>
</author>
<published>2016-03-21T17:06:10+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ee087744247c421c83abea7f01217bfd39b8f5a9'/>
<id>urn:sha1:ee087744247c421c83abea7f01217bfd39b8f5a9</id>
<content type='text'>
Handle the Oscillator Failure ('OF') bit from Oscillator Status register
(0x1D). This bit is cleared on set_time function and is read each time the
date/time is read, but only in case of XT Oscillator selection.
In RC mode, this bit is always set.

Signed-off-by: Mylène Josserand &lt;mylene.josserand@free-electrons.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: abx80x: handle autocalibration</title>
<updated>2016-03-25T01:41:13+00:00</updated>
<author>
<name>Mylène Josserand</name>
<email>mylene.josserand@free-electrons.com</email>
</author>
<published>2016-03-21T17:06:09+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=59a8383adb75459c9d6766656bccc05950b783ea'/>
<id>urn:sha1:59a8383adb75459c9d6766656bccc05950b783ea</id>
<content type='text'>
The autocalibration is separated in two bits to set in Oscillator
Control register (0x1c) :
 - OSEL bit to select the oscillator type (XT or RC).
 - ACAL bit to select the autocalibration type.

These functionnalities are exported in sysfs entries : "oscillator"
and "autocalibration". Respectively, the values are "xtal" for XT
oscillator and "rc" for RC oscillator and 0 to disable the
autocalibration cycle, 512 for a 512 seconds autocalibration cycle
and 1024 for a cycle of 1024 seconds.

Examples :
Set to XT Oscillator
echo xtal &gt; /sys/class/rtc/rtc0/device/oscillator
Activate an autocalibration every 512 seconds
echo 512 &gt; /sys/class/rtc/rtc0/device/autocalibration

Signed-off-by: Mylène Josserand &lt;mylene.josserand@free-electrons.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: rv8803: workaround i2c HW issue</title>
<updated>2016-03-25T01:38:59+00:00</updated>
<author>
<name>Alexandre Belloni</name>
<email>alexandre.belloni@free-electrons.com</email>
</author>
<published>2016-03-21T14:58:38+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=85062c9b990b1dc8bbb8971ee7d3044a999cf25f'/>
<id>urn:sha1:85062c9b990b1dc8bbb8971ee7d3044a999cf25f</id>
<content type='text'>
The rv8803 has a 60µs window where it will not answer on the i2c bus.
It also means there will be no ack for the communication. Make sure
communication is tried multiple times when this happens (the i2c subsystem
mandates -ENXIO is that case but the number of retries is host specific).
The critical parts are the probe function and the alarm callback so make
sure we handle the failure there.

Cc: stable@vger.kernel.org # v4.4
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: mcp795: add devicetree support</title>
<updated>2016-03-21T21:55:29+00:00</updated>
<author>
<name>Emil Bartczak</name>
<email>emilbart@gmail.com</email>
</author>
<published>2016-03-21T00:06:10+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=7f8a58925b4c0198c12344025b6ffd5dd7d9f1f5'/>
<id>urn:sha1:7f8a58925b4c0198c12344025b6ffd5dd7d9f1f5</id>
<content type='text'>
Add device tree support to the rtc-mcp795 driver.

Signed-off-by: Emil Bartczak &lt;emilbart@gmail.com&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: asm9260: remove incorrect __init/__exit annotations</title>
<updated>2016-03-18T23:02:55+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2016-03-15T21:44:31+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=15c6ea6f81328b0071cf63fb00b324199a9b8647'/>
<id>urn:sha1:15c6ea6f81328b0071cf63fb00b324199a9b8647</id>
<content type='text'>
The probe and remove callbacks of the platform driver are marked __init
and __exit, respectively. However, this is not a correct way to annotate
them, as it will result in those sections to be discarded at link time
or after boot, while we can actually call them again based on manual
unbinding, or deferred probing.

Kbuild warns about the problem:

WARNING: drivers/rtc/rtc-asm9260.o(.data+0x0): Section mismatch in reference from the variable asm9260_rtc_driver to the function .init.text:asm9260_rtc_probe()

This removes the annotations, so we no longer branch into missing
code and avoid the warning.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Fixes: 125e550fd257 ("rtc: add Alphascale asm9260 driver")
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: m41t80: avoid out of range year values</title>
<updated>2016-03-18T23:00:59+00:00</updated>
<author>
<name>Stefan Christ</name>
<email>s.christ@phytec.de</email>
</author>
<published>2016-03-15T13:22:26+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=bcebd81d00a062af5a4cf900b08c8ca22a26d52f'/>
<id>urn:sha1:bcebd81d00a062af5a4cf900b08c8ca22a26d52f</id>
<content type='text'>
Avoid saving an out of range year value to the RTC. Reading that value
from the RTC again returns a totally wrong time value. For Example

    $ timedatectl set-ntp no
    $ timedatectl set-time "1990-01-01 12:12:00"
    # Reboot
    rtc-m41t80 0-0068: setting system clock to 2090-01-01 12:12:35 UTC (3786955955)

Signed-off-by: Stefan Christ &lt;s.christ@phytec.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: s3c: Don't print an error on probe deferral</title>
<updated>2016-03-18T23:00:12+00:00</updated>
<author>
<name>Javier Martinez Canillas</name>
<email>javier@osg.samsung.com</email>
</author>
<published>2016-03-15T01:38:38+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ae6e00b4c01f701a9a268adf35371c018396cd05'/>
<id>urn:sha1:ae6e00b4c01f701a9a268adf35371c018396cd05</id>
<content type='text'>
The clock and source clock looked up by the driver may not be available
just because the clock controller driver was not probed yet so printing
an error in this case is not correct and only adds confusion to users.

However, knowing that a driver's probe was deferred may be useful so it
can be printed as a debug information.

Signed-off-by: Javier Martinez Canillas &lt;javier@osg.samsung.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
</feed>
