<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/drivers/rtc/rtc-mxc_v2.c, branch v4.18</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=v4.18</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=v4.18'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2018-05-19T08:50:03+00:00</updated>
<entry>
<title>rtc: mxc_v2: use rtc_time64_to_tm in mxc_rtc_read_alarm</title>
<updated>2018-05-19T08:50:03+00:00</updated>
<author>
<name>Alexandre Belloni</name>
<email>alexandre.belloni@bootlin.com</email>
</author>
<published>2018-05-19T08:50:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=7e83f03fad3e404778fbcfb16f91a09aecf27e04'/>
<id>urn:sha1:7e83f03fad3e404778fbcfb16f91a09aecf27e04</id>
<content type='text'>
Use the 64-bit version of rtc_time_to_tm in mxc_rtc_read_alarm

Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
</content>
</entry>
<entry>
<title>rtc: mxc_v2: let the core handle rtc range</title>
<updated>2018-05-19T08:47:46+00:00</updated>
<author>
<name>Alexandre Belloni</name>
<email>alexandre.belloni@bootlin.com</email>
</author>
<published>2018-05-19T08:04:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=95fbfa14b431d4d7213b8e0e167563f7a11dd5e7'/>
<id>urn:sha1:95fbfa14b431d4d7213b8e0e167563f7a11dd5e7</id>
<content type='text'>
This RTC is a 32-bit second counter.

This also solves an issue where mxc_rtc_set_alarm() can return with the
lock taken.

Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
</content>
</entry>
<entry>
<title>rtc: mxc_v2: fix possible race condition</title>
<updated>2018-05-19T08:47:46+00:00</updated>
<author>
<name>Alexandre Belloni</name>
<email>alexandre.belloni@bootlin.com</email>
</author>
<published>2018-05-19T08:01:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=5490a1e018a4b447c1fdb49ec274a620e60a4d42'/>
<id>urn:sha1:5490a1e018a4b447c1fdb49ec274a620e60a4d42</id>
<content type='text'>
The IRQ is requested before the struct rtc is allocated and registered, but
this struct is used in the IRQ handler. This may lead to a NULL pointer
dereference.

Switch to devm_rtc_allocate_device/rtc_register_device to allocate the rtc
before requesting the IRQ.

Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
</content>
</entry>
<entry>
<title>rtc: mxc_v2: Fix _iomem pointer notation</title>
<updated>2018-03-01T09:49:36+00:00</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@nxp.com</email>
</author>
<published>2018-02-12T02:38:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=588519ff16552c5a6f6a189767692db6689cadad'/>
<id>urn:sha1:588519ff16552c5a6f6a189767692db6689cadad</id>
<content type='text'>
Fix the iomem pointer notation in order to fix the following sparse
warnings:

drivers/rtc/rtc-mxc_v2.c:280:18: warning: incorrect type in argument 1 (different address spaces)
drivers/rtc/rtc-mxc_v2.c:280:18:    expected void const volatile [noderef] &lt;asn:2&gt;*addr
drivers/rtc/rtc-mxc_v2.c:280:18:    got void *[noderef] &lt;asn:2&gt;ioaddr
drivers/rtc/rtc-mxc_v2.c:329:44: warning: incorrect type in argument 1 (different address spaces)
drivers/rtc/rtc-mxc_v2.c:329:44:    expected void *[noderef] &lt;asn:2&gt;ioaddr
drivers/rtc/rtc-mxc_v2.c:329:44:    got void [noderef] &lt;asn:2&gt;*
drivers/rtc/rtc-mxc_v2.c:339:44: warning: incorrect type in argument 1 (different address spaces)
drivers/rtc/rtc-mxc_v2.c:339:44:    expected void *[noderef] &lt;asn:2&gt;ioaddr
drivers/rtc/rtc-mxc_v2.c:339:44:    got void [noderef] &lt;asn:2&gt;*

Signed-off-by: Fabio Estevam &lt;fabio.estevam@nxp.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
</content>
</entry>
<entry>
<title>rtc: mxc_v2: remove __exit annotation</title>
<updated>2018-01-11T23:20:40+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2018-01-02T09:43:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=db00d38e7b59ae913cfa10f1c40bf656a969fb82'/>
<id>urn:sha1:db00d38e7b59ae913cfa10f1c40bf656a969fb82</id>
<content type='text'>
The mxc_rtc_remove is incorrectly annotated as __exit:

`mxc_rtc_remove' referenced in section `.data' of drivers/rtc/rtc-mxc_v2.o: defined in discarded section `.exit.text' of drivers/rtc/rtc-mxc_v2.o

This should not be done, as devices can be dynamically bound
and unbound to a driver.

Fixes: 54c47014b474 ("rtc: add mxc driver for i.MX53 SRTC")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: mxc_v2: Remove unnecessary platform_get_resource() error check</title>
<updated>2018-01-11T23:20:40+00:00</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@nxp.com</email>
</author>
<published>2017-12-21T11:43:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=a9c705a8bd52d8a5205cc779d6e64af4321a9fa8'/>
<id>urn:sha1:a9c705a8bd52d8a5205cc779d6e64af4321a9fa8</id>
<content type='text'>
devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.

Signed-off-by: Fabio Estevam &lt;fabio.estevam@nxp.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: add mxc driver for i.MX53 SRTC</title>
<updated>2018-01-11T23:20:39+00:00</updated>
<author>
<name>Patrick Bruenn</name>
<email>p.bruenn@beckhoff.com</email>
</author>
<published>2017-12-18T11:51:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=83c880f79e88cc60593f627e612326f5d43db81e'/>
<id>urn:sha1:83c880f79e88cc60593f627e612326f5d43db81e</id>
<content type='text'>
Neither rtc-imxdi, rtc-mxc nor rtc-snvs are compatible with i.MX53.

This is driver enables support for the low power domain SRTC features:
- 32-bit MSB of non-rollover time counter
- 32-bit alarm register

Select the new config option RTC_DRV_MXC_V2 to build this driver

Based on:
http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/rtc/rtc-mxc_v2.c?h=imx_2.6.35_11.09.01

Signed-off-by: Patrick Bruenn &lt;p.bruenn@beckhoff.com&gt;
Acked-by: Philippe Ombredanne &lt;pombredanne@nexb.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
</feed>
