<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/rtc/rtc-mcp795.c, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2018-12-10T21:39:52Z</updated>
<entry>
<title>rtc: mcp795: Switch to use %ptR</title>
<updated>2018-12-10T21:39:52Z</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2018-12-04T21:23:17Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1481376072460fee7f25f142f3e3dac81651dfb6'/>
<id>urn:sha1:1481376072460fee7f25f142f3e3dac81651dfb6</id>
<content type='text'>
Use %ptR instead of open coded variant to print content of
struct rtc_time in human readable format.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
</content>
</entry>
<entry>
<title>rtc: remove VLA usage</title>
<updated>2018-03-17T13:20:56Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
<email>garsilva@embeddedor.com</email>
</author>
<published>2018-03-08T02:27:56Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fed9b18611f75110d5b26d650819665d528038da'/>
<id>urn:sha1:fed9b18611f75110d5b26d650819665d528038da</id>
<content type='text'>
In preparation to enabling -Wvla, remove VLA and replace it
with a fixed-length array instead.

&gt;From a security viewpoint, the use of Variable Length Arrays can be
a vector for stack overflow attacks. Also, in general, as the code
evolves it is easy to lose track of how big a VLA can get. Thus, we
can end up having segfaults that are hard to debug.

Also, fixed as part of the directive to remove all VLAs from
the kernel: https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Gustavo A. R. Silva &lt;garsilva@embeddedor.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
</content>
</entry>
<entry>
<title>rtc: stop validating rtc_time in .read_time</title>
<updated>2018-03-02T09:09:58Z</updated>
<author>
<name>Alexandre Belloni</name>
<email>alexandre.belloni@bootlin.com</email>
</author>
<published>2018-02-19T15:23:56Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=22652ba72453d35c8a637d5c0f06b3dc29ff9eb0'/>
<id>urn:sha1:22652ba72453d35c8a637d5c0f06b3dc29ff9eb0</id>
<content type='text'>
The RTC core is always calling rtc_valid_tm after the read_time callback.
It is not necessary to call it just before returning from the callback.

Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
</content>
</entry>
<entry>
<title>rtc: mcp795: add alarm support.</title>
<updated>2017-01-11T16:23:04Z</updated>
<author>
<name>Emil Bartczak</name>
<email>emilbart@gmail.com</email>
</author>
<published>2016-12-25T22:07:43Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=644d4c366b28faaee5d21dc1575a8b9b95a73cac'/>
<id>urn:sha1:644d4c366b28faaee5d21dc1575a8b9b95a73cac</id>
<content type='text'>
This patch adds alarm support. This allows to configure the chip
to generate an interrupt when the alarm matches current time value.
Alarm can be programmed up to one year in the future
and is accurate to the second.

Signed-off-by: Emil Bartczak &lt;emilbart@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: mcp795: Add support for weekday.</title>
<updated>2017-01-11T16:23:04Z</updated>
<author>
<name>Emil Bartczak</name>
<email>emilbart@gmail.com</email>
</author>
<published>2016-12-25T22:07:42Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=72877b51d0c5abf21646723f8347c5acf8fb8a45'/>
<id>urn:sha1:72877b51d0c5abf21646723f8347c5acf8fb8a45</id>
<content type='text'>
This patch adds support for saving/loading weekday value from the chip.

Signed-off-by: Emil Bartczak &lt;emilbart@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: mcp795: Fix whitespace and indentation.</title>
<updated>2016-12-18T23:59:25Z</updated>
<author>
<name>Emil Bartczak</name>
<email>emilbart@gmail.com</email>
</author>
<published>2016-12-07T23:27:42Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d3e5925902dc0f639efc3641e07fca2bd7af5441'/>
<id>urn:sha1:d3e5925902dc0f639efc3641e07fca2bd7af5441</id>
<content type='text'>
Fix whitespace and indentation errors and the following
checkpatch warnings:
- line 15: Block comments use a trailing */ on a separate line
- line 256: Line over 80 characters
No code change.

Signed-off-by: Emil Bartczak &lt;emilbart@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: mcp795: Prefer using the BIT() macro.</title>
<updated>2016-12-18T23:59:24Z</updated>
<author>
<name>Emil Bartczak</name>
<email>emilbart@gmail.com</email>
</author>
<published>2016-12-07T23:27:41Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a2b42997513401903341cf96616839ad22f151b6'/>
<id>urn:sha1:a2b42997513401903341cf96616839ad22f151b6</id>
<content type='text'>
This patch doesn't change the code but replaces all bitmask values
with the BIT(x) macro.

Signed-off-by: Emil Bartczak &lt;emilbart@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: mcp795: fix month write resetting date to 1.</title>
<updated>2016-12-18T23:59:23Z</updated>
<author>
<name>Emil Bartczak</name>
<email>emilbart@gmail.com</email>
</author>
<published>2016-12-07T23:27:40Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=43d0b10f60c54667108729adb525bc1090d4238f'/>
<id>urn:sha1:43d0b10f60c54667108729adb525bc1090d4238f</id>
<content type='text'>
According to Microchip errata some combinations of date and month
values may result in the date being reset to 1, even if the date
is also written with the month (for example 31-07 or 31-08).
As a workaround avoid writing date and month values within the same
Write command. Instead, terminate the Write command after loading
the date and begin a new command to write the month. In addition,
disable the oscillator before loading the new values. This is done
by ensuring both the ST and EXTOSC bits are cleared and waiting for
the OSCON bit to clear.

Signed-off-by: Emil Bartczak &lt;emilbart@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: mcp795: fix time range difference between linux and RTC chip.</title>
<updated>2016-12-18T23:59:23Z</updated>
<author>
<name>Emil Bartczak</name>
<email>emilbart@gmail.com</email>
</author>
<published>2016-12-07T23:27:39Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=26eeefd5956449b03c87c49b996e012ffe3e59aa'/>
<id>urn:sha1:26eeefd5956449b03c87c49b996e012ffe3e59aa</id>
<content type='text'>
In linux rtc_time struct, tm_mon range is 0~11, while in RTC HW REG,
month range is 1~12. This patch adjusts difference of them.

Signed-off-by: Emil Bartczak &lt;emilbart@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: mcp795: fix bitmask value for leap year (LP).</title>
<updated>2016-12-18T23:59:22Z</updated>
<author>
<name>Emil Bartczak</name>
<email>emilbart@gmail.com</email>
</author>
<published>2016-12-07T23:27:38Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e72765c648a172f052486cba9688ddc28f23140b'/>
<id>urn:sha1:e72765c648a172f052486cba9688ddc28f23140b</id>
<content type='text'>
According the datasheet the leap year is a fifth bit in month register.

Signed-off-by: Emil Bartczak &lt;emilbart@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
</feed>
