<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/rtc/rtc-m41t80.c, branch v4.9.2</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>rtc: m41t80: add suspend handlers for alarm IRQ</title>
<updated>2016-07-21T18:06:57+00:00</updated>
<author>
<name>Stefan Christ</name>
<email>s.christ@phytec.de</email>
</author>
<published>2016-07-05T11:53:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ae036af8962da5856be2ee2b5543e65014cd608f'/>
<id>ae036af8962da5856be2ee2b5543e65014cd608f</id>
<content type='text'>
Allow the alarm IRQ of RTC to be used as a wakeup source for the system
suspend.

Signed-off-by: Stefan Christ &lt;s.christ@phytec.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow the alarm IRQ of RTC to be used as a wakeup source for the system
suspend.

Signed-off-by: Stefan Christ &lt;s.christ@phytec.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: m41t80: make it a real error message</title>
<updated>2016-07-21T18:06:47+00:00</updated>
<author>
<name>Stefan Christ</name>
<email>s.christ@phytec.de</email>
</author>
<published>2016-07-05T11:53:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e89487fef537975f2c95c6c41316201c2e0869ab'/>
<id>e89487fef537975f2c95c6c41316201c2e0869ab</id>
<content type='text'>
It should be a real error message, when the driver cannot enable the IRQ
of the device.

Signed-off-by: Stefan Christ &lt;s.christ@phytec.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It should be a real error message, when the driver cannot enable the IRQ
of the device.

Signed-off-by: Stefan Christ &lt;s.christ@phytec.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: m41t80: use devm_add_action_or_reset()</title>
<updated>2016-07-19T15:27:40+00:00</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2016-07-03T20:18:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=104b2d8776a42e2b8f9d349adfd71af0794e2a8a'/>
<id>104b2d8776a42e2b8f9d349adfd71af0794e2a8a</id>
<content type='text'>
If devm_add_action() fails we are explicitly calling the cleanup to free
the resources allocated.  Lets use the helper devm_add_action_or_reset()
and return directly in case of error, as we know that the cleanup function
has been already called by the helper if there was any error.

Signed-off-by: Sudip Mukherjee &lt;sudip.mukherjee@codethink.co.uk&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If devm_add_action() fails we are explicitly calling the cleanup to free
the resources allocated.  Lets use the helper devm_add_action_or_reset()
and return directly in case of error, as we know that the cleanup function
has been already called by the helper if there was any error.

Signed-off-by: Sudip Mukherjee &lt;sudip.mukherjee@codethink.co.uk&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: simplify implementations of read_alarm</title>
<updated>2016-07-09T08:24:45+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>uwe@kleine-koenig.org</email>
</author>
<published>2016-06-28T08:43:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=56d86a7e799d3d893cb96f5b17b13de134af8de5'/>
<id>56d86a7e799d3d893cb96f5b17b13de134af8de5</id>
<content type='text'>
Since commit d68778b80dd7 ("rtc: initialize output parameter for read
alarm to "uninitialized"") there is no need to explicitly set
unsupported members to -1. So drop the respective assignments from
drivers.

Signed-off-by: Uwe Kleine-König &lt;uwe@kleine-koenig.org&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since commit d68778b80dd7 ("rtc: initialize output parameter for read
alarm to "uninitialized"") there is no need to explicitly set
unsupported members to -1. So drop the respective assignments from
drivers.

Signed-off-by: Uwe Kleine-König &lt;uwe@kleine-koenig.org&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: m41t80: handle oscillator failure bit</title>
<updated>2016-05-20T10:33:51+00:00</updated>
<author>
<name>Mylène Josserand</name>
<email>mylene.josserand@free-electrons.com</email>
</author>
<published>2016-03-29T06:56:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=05a7f27a889f1635b7b7d5b051b17cacb25267fa'/>
<id>05a7f27a889f1635b7b7d5b051b17cacb25267fa</id>
<content type='text'>
Handle the Oscillator Failure (OF) bit on each read of date-time.
If the OF is set, an error is returned (-EINVAL) instead of the date-time.
The OF bit is cleared each time the date is 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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Handle the Oscillator Failure (OF) bit on each read of date-time.
If the OF is set, an error is returned (-EINVAL) instead of the date-time.
The OF bit is cleared each time the date is 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;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: m41t80: add wakealarm functionality</title>
<updated>2016-05-20T10:33:51+00:00</updated>
<author>
<name>Mylène Josserand</name>
<email>mylene.josserand@free-electrons.com</email>
</author>
<published>2016-03-29T06:56:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3726a21833c9c96255735bddb5dacc8eacbff3ef'/>
<id>3726a21833c9c96255735bddb5dacc8eacbff3ef</id>
<content type='text'>
To enable the wakealarm, the device must be able to wakeup.
This is done by setting the device wakeup capability to true with
'device_init_wakeup' function.

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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To enable the wakealarm, the device must be able to wakeup.
This is done by setting the device wakeup capability to true with
'device_init_wakeup' function.

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;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: m41t80: add alarm functionality</title>
<updated>2016-05-20T10:33:51+00:00</updated>
<author>
<name>Mylène Josserand</name>
<email>mylene.josserand@free-electrons.com</email>
</author>
<published>2016-03-29T09:04:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9c6dfed92c3e86d6f84780625c0595ba56d03986'/>
<id>9c6dfed92c3e86d6f84780625c0595ba56d03986</id>
<content type='text'>
Previous 'commit c3b79770e51a ("Expire alarms after the time is set")'
and 'commit 48e9766726eb ("remove disabled alarm functionality")' removed
the alarm support because the alarm irq was not functional.

Add the alarm IRQ functionality with newer functions than previous
code. Tested with 'rtctest' and the alarm is functional.

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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previous 'commit c3b79770e51a ("Expire alarms after the time is set")'
and 'commit 48e9766726eb ("remove disabled alarm functionality")' removed
the alarm support because the alarm irq was not functional.

Add the alarm IRQ functionality with newer functions than previous
code. Tested with 'rtctest' and the alarm is functional.

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;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: m41t80: remove warnings and replace obsolete function</title>
<updated>2016-05-20T10:33:51+00:00</updated>
<author>
<name>Mylène Josserand</name>
<email>mylene.josserand@free-electrons.com</email>
</author>
<published>2016-03-29T06:56:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fc99b90154e519dd6cd21cb11d013f36017a1b94'/>
<id>fc99b90154e519dd6cd21cb11d013f36017a1b94</id>
<content type='text'>
Replace the obsolete "simple_strtoul" function to "kstrtoul".
Remove some checkpatch's errors, warnings and checks :
   - alignment with open parenthesis
   - spaces around '&lt;' and '&lt;&lt;'
   - blank line after structure
   - quoted string split across lines

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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace the obsolete "simple_strtoul" function to "kstrtoul".
Remove some checkpatch's errors, warnings and checks :
   - alignment with open parenthesis
   - spaces around '&lt;' and '&lt;&lt;'
   - blank line after structure
   - quoted string split across lines

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;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: m41t80: add the use of 'BIT' macro</title>
<updated>2016-05-20T10:33:51+00:00</updated>
<author>
<name>Mylène Josserand</name>
<email>mylene.josserand@free-electrons.com</email>
</author>
<published>2016-03-29T06:56:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=54339f3b311f1b2cbef7b84d6794e00e7ecb2184'/>
<id>54339f3b311f1b2cbef7b84d6794e00e7ecb2184</id>
<content type='text'>
Replace bit shifts by BIT macro.

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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace bit shifts by BIT macro.

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;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtc: m41t80: replace i2c functions for smbus ones</title>
<updated>2016-05-20T10:33:51+00:00</updated>
<author>
<name>Mylène Josserand</name>
<email>mylene.josserand@free-electrons.com</email>
</author>
<published>2016-03-29T06:56:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f2b84ee88d367dd563c25b6900da279ab2ffa3ea'/>
<id>f2b84ee88d367dd563c25b6900da279ab2ffa3ea</id>
<content type='text'>
The driver used i2c_transfer methods to read and set date/time.
The smbus methods should be used.

This commit replaces i2c_transfer functions by i2c_smbus_XX_i2c_block_data
for reading and setting the datetime.

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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The driver used i2c_transfer methods to read and set date/time.
The smbus methods should be used.

This commit replaces i2c_transfer functions by i2c_smbus_XX_i2c_block_data
for reading and setting the datetime.

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;
</pre>
</div>
</content>
</entry>
</feed>
