<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/rtc, branch v5.10.78</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v5.10.78</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v5.10.78'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2021-09-26T12:09:02+00:00</updated>
<entry>
<title>rtc: rx8010: select REGMAP_I2C</title>
<updated>2021-09-26T12:09:02+00:00</updated>
<author>
<name>Yu-Tung Chang</name>
<email>mtwget@gmail.com</email>
</author>
<published>2021-08-30T05:25:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=647c19bc61023b305389f5b027b2f7edab0feca2'/>
<id>urn:sha1:647c19bc61023b305389f5b027b2f7edab0feca2</id>
<content type='text'>
[ Upstream commit 0c45d3e24ef3d3d87c5e0077b8f38d1372af7176 ]

The rtc-rx8010 uses the I2C regmap but doesn't select it in Kconfig so
depending on the configuration the build may fail. Fix it.

Signed-off-by: Yu-Tung Chang &lt;mtwget@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/20210830052532.40356-1-mtwget@gmail.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>rtc: tps65910: Correct driver module alias</title>
<updated>2021-09-18T11:40:05+00:00</updated>
<author>
<name>Dmitry Osipenko</name>
<email>digetx@gmail.com</email>
</author>
<published>2021-08-08T16:00:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ebedb252a47f754575ac2486298ba6912924e4bf'/>
<id>urn:sha1:ebedb252a47f754575ac2486298ba6912924e4bf</id>
<content type='text'>
commit 8d448fa0a8bb1c8d94eef7647edffe9ac81a281e upstream.

The TPS65910 RTC driver module doesn't auto-load because of the wrong
module alias that doesn't match the device name, fix it.

Cc: stable@vger.kernel.org
Reported-by: Anton Bambura &lt;jenneron@protonmail.com&gt;
Tested-by: Anton Bambura &lt;jenneron@protonmail.com&gt;
Signed-off-by: Dmitry Osipenko &lt;digetx@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/20210808160030.8556-1-digetx@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>rtc: max77686: Do not enforce (incorrect) interrupt trigger type</title>
<updated>2021-07-25T12:36:16+00:00</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>krzk@kernel.org</email>
</author>
<published>2021-05-26T17:20:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=cdb995a6cbb5315e2d0bfba92ac1e08bfa25cfdb'/>
<id>urn:sha1:cdb995a6cbb5315e2d0bfba92ac1e08bfa25cfdb</id>
<content type='text'>
[ Upstream commit 742b0d7e15c333303daad4856de0764f4bc83601 ]

Interrupt line can be configured on different hardware in different way,
even inverted.  Therefore driver should not enforce specific trigger
type - edge falling - but instead rely on Devicetree to configure it.

The Maxim 77686 datasheet describes the interrupt line as active low
with a requirement of acknowledge from the CPU therefore the edge
falling is not correct.

The interrupt line is shared between PMIC and RTC driver, so using level
sensitive interrupt is here especially important to avoid races.  With
an edge configuration in case if first PMIC signals interrupt followed
shortly after by the RTC, the interrupt might not be yet cleared/acked
thus the second one would not be noticed.

Signed-off-by: Krzysztof Kozlowski &lt;krzk@kernel.org&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/20210526172036.183223-6-krzysztof.kozlowski@canonical.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>rtc: mxc_v2: add missing MODULE_DEVICE_TABLE</title>
<updated>2021-07-25T12:36:12+00:00</updated>
<author>
<name>Bixuan Cui</name>
<email>cuibixuan@huawei.com</email>
</author>
<published>2021-05-08T03:15:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=27582c9fa2946e63f292ab94d157681647f979c0'/>
<id>urn:sha1:27582c9fa2946e63f292ab94d157681647f979c0</id>
<content type='text'>
[ Upstream commit 206e04ec7539e7bfdde9aa79a7cde656c9eb308e ]

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Bixuan Cui &lt;cuibixuan@huawei.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/20210508031509.53735-1-cuibixuan@huawei.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>rtc: fix snprintf() checking in is_rtc_hctosys()</title>
<updated>2021-07-20T14:05:55+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2021-05-11T07:19:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ab4d76eb77371af83f8272fbe05bee8154756d0a'/>
<id>urn:sha1:ab4d76eb77371af83f8272fbe05bee8154756d0a</id>
<content type='text'>
[ Upstream commit 54b909436ede47e0ee07f1765da27ec2efa41e84 ]

The scnprintf() function silently truncates the printf() and returns
the number bytes that it was able to copy (not counting the NUL
terminator).  Thus, the highest value it can return here is
"NAME_SIZE - 1" and the overflow check is dead code.  Fix this by
using the snprintf() function which returns the number of bytes that
would have been copied if there was enough space and changing the
condition from "&gt; NAME_SIZE" to "&gt;= NAME_SIZE".

Fixes: 92589c986b33 ("rtc-proc: permit the /proc/driver/rtc device to use other devices")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/YJov/pcGmhLi2pEl@mwanda
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>rtc: stm32: Fix unbalanced clk_disable_unprepare() on probe error path</title>
<updated>2021-07-14T14:55:44+00:00</updated>
<author>
<name>Martin Fuzzey</name>
<email>martin.fuzzey@flowbird.group</email>
</author>
<published>2021-06-07T17:36:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a6f7bf2652bb46c88fc057197abc52ccd5ef45b5'/>
<id>urn:sha1:a6f7bf2652bb46c88fc057197abc52ccd5ef45b5</id>
<content type='text'>
commit 950ac33dbe6ff656a623d862022f0762ec061ba7 upstream.

The STM32MP1 RTC may have 2 clocks, the pclk and the rtc_ck.

If clk_prepare_enable() fails for the second clock (rtc_ck) we must only
call clk_disable_unprepare() for the first clock (pclk) but currently we
call it on both leading to a WARN:

[   15.629568] WARNING: CPU: 0 PID: 146 at drivers/clk/clk.c:958 clk_core_disable+0xb0/0xc8
[   15.637620] ck_rtc already disabled
[   15.663322] CPU: 0 PID: 146 Comm: systemd-udevd Not tainted 5.4.77-pknbsp-svn5759-atag-v5.4.77-204-gea4235203137-dirty #2413
[   15.674510] Hardware name: STM32 (Device Tree Support)
[   15.679658] [&lt;c0111148&gt;] (unwind_backtrace) from [&lt;c010c0b8&gt;] (show_stack+0x10/0x14)
[   15.687371] [&lt;c010c0b8&gt;] (show_stack) from [&lt;c0ab3d28&gt;] (dump_stack+0xc0/0xe0)
[   15.694574] [&lt;c0ab3d28&gt;] (dump_stack) from [&lt;c012360c&gt;] (__warn+0xc8/0xf0)
[   15.701428] [&lt;c012360c&gt;] (__warn) from [&lt;c0123694&gt;] (warn_slowpath_fmt+0x60/0x94)
[   15.708894] [&lt;c0123694&gt;] (warn_slowpath_fmt) from [&lt;c053b518&gt;] (clk_core_disable+0xb0/0xc8)
[   15.717230] [&lt;c053b518&gt;] (clk_core_disable) from [&lt;c053c190&gt;] (clk_core_disable_lock+0x18/0x24)
[   15.725924] [&lt;c053c190&gt;] (clk_core_disable_lock) from [&lt;bf0adc44&gt;] (stm32_rtc_probe+0x124/0x5e4 [rtc_stm32])
[   15.735739] [&lt;bf0adc44&gt;] (stm32_rtc_probe [rtc_stm32]) from [&lt;c05f7d4c&gt;] (platform_drv_probe+0x48/0x98)
[   15.745095] [&lt;c05f7d4c&gt;] (platform_drv_probe) from [&lt;c05f5cec&gt;] (really_probe+0x1f0/0x458)
[   15.753338] [&lt;c05f5cec&gt;] (really_probe) from [&lt;c05f61c4&gt;] (driver_probe_device+0x70/0x1c4)
[   15.761584] [&lt;c05f61c4&gt;] (driver_probe_device) from [&lt;c05f6580&gt;] (device_driver_attach+0x58/0x60)
[   15.770439] [&lt;c05f6580&gt;] (device_driver_attach) from [&lt;c05f6654&gt;] (__driver_attach+0xcc/0x170)
[   15.779032] [&lt;c05f6654&gt;] (__driver_attach) from [&lt;c05f40d8&gt;] (bus_for_each_dev+0x58/0x7c)
[   15.787191] [&lt;c05f40d8&gt;] (bus_for_each_dev) from [&lt;c05f4ffc&gt;] (bus_add_driver+0xdc/0x1f8)
[   15.795352] [&lt;c05f4ffc&gt;] (bus_add_driver) from [&lt;c05f6ed8&gt;] (driver_register+0x7c/0x110)
[   15.803425] [&lt;c05f6ed8&gt;] (driver_register) from [&lt;c01027bc&gt;] (do_one_initcall+0x70/0x1b8)
[   15.811588] [&lt;c01027bc&gt;] (do_one_initcall) from [&lt;c01a1094&gt;] (do_init_module+0x58/0x1f8)
[   15.819660] [&lt;c01a1094&gt;] (do_init_module) from [&lt;c01a0074&gt;] (load_module+0x1e58/0x23c8)
[   15.827646] [&lt;c01a0074&gt;] (load_module) from [&lt;c01a0860&gt;] (sys_finit_module+0xa0/0xd4)
[   15.835459] [&lt;c01a0860&gt;] (sys_finit_module) from [&lt;c01011e0&gt;] (__sys_trace_return+0x0/0x20)

Signed-off-by: Martin Fuzzey &lt;martin.fuzzey@flowbird.group&gt;
Fixes: 4e64350f42e2 ("rtc: add STM32 RTC driver")
Cc: stable@vger.kernel.org
Reviewed-by: Nobuhiro Iwamatsu &lt;iwamatsu@nigauri.org&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/1623087421-19722-1-git-send-email-martin.fuzzey@flowbird.group
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>rtc: pcf85063: fallback to parent of_node</title>
<updated>2021-05-26T10:06:57+00:00</updated>
<author>
<name>Francois Gervais</name>
<email>fgervais@distech-controls.com</email>
</author>
<published>2021-03-10T21:10:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0296c9057adee577bf53f7e91f6b1178e23aeb44'/>
<id>urn:sha1:0296c9057adee577bf53f7e91f6b1178e23aeb44</id>
<content type='text'>
commit 03531606ef4cda25b629f500d1ffb6173b805c05 upstream.

The rtc device node is always NULL.

Since v5.12-rc1-dontuse/3c9ea42802a1fbf7ef29660ff8c6e526c58114f6 this
will lead to a NULL pointer dereference.

To fix this use the parent node which is the i2c client node as set by
devm_rtc_allocate_device().

Using the i2c client node seems to be what other similar drivers do
e.g. rtc-pcf8563.c.

Signed-off-by: Francois Gervais &lt;fgervais@distech-controls.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/20210310211026.27299-1-fgervais@distech-controls.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>rtc: ds1307: Fix wday settings for rx8130</title>
<updated>2021-05-19T08:13:05+00:00</updated>
<author>
<name>Nobuhiro Iwamatsu</name>
<email>nobuhiro1.iwamatsu@toshiba.co.jp</email>
</author>
<published>2021-04-20T02:39:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=494ade7aba117f8054f78addc5c36f1a622b17e8'/>
<id>urn:sha1:494ade7aba117f8054f78addc5c36f1a622b17e8</id>
<content type='text'>
[ Upstream commit 204756f016726a380bafe619438ed979088bd04a ]

rx8130 wday specifies the bit position, not BCD.

Fixes: ee0981be7704 ("rtc: ds1307: Add support for Epson RX8130CE")
Signed-off-by: Nobuhiro Iwamatsu &lt;nobuhiro1.iwamatsu@toshiba.co.jp&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/20210420023917.1949066-1-nobuhiro1.iwamatsu@toshiba.co.jp
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>rtc: fsl-ftm-alarm: add MODULE_TABLE()</title>
<updated>2021-05-19T08:13:03+00:00</updated>
<author>
<name>Michael Walle</name>
<email>michael@walle.cc</email>
</author>
<published>2021-04-14T08:40:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0f9d467ff1396c66f64e9bd2de3ec25bfc10b7a0'/>
<id>urn:sha1:0f9d467ff1396c66f64e9bd2de3ec25bfc10b7a0</id>
<content type='text'>
[ Upstream commit 7fcb86185978661c9188397d474f90364745b8d9 ]

The module doesn't load automatically. Fix it by adding the missing
MODULE_TABLE().

Fixes: 7b0b551dbc1e ("rtc: fsl-ftm-alarm: add FTM alarm driver")
Signed-off-by: Michael Walle &lt;michael@walle.cc&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/20210414084006.17933-1-michael@walle.cc
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>rtc: zynqmp: depend on HAS_IOMEM</title>
<updated>2021-03-04T10:38:03+00:00</updated>
<author>
<name>David Gow</name>
<email>davidgow@google.com</email>
</author>
<published>2021-01-27T03:51:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=378f670e08fcb940e6816fac369aa749344e1d16'/>
<id>urn:sha1:378f670e08fcb940e6816fac369aa749344e1d16</id>
<content type='text'>
[ Upstream commit ddd0521549a975e6148732d6ca6b89ffa862c0e5 ]

The Xilinx zynqmp RTC driver makes use of IOMEM functions like
devm_platform_ioremap_resource(), which are only available if
CONFIG_HAS_IOMEM is defined.

This causes the driver not to be enable under make ARCH=um allyesconfig,
even though it won't build.

By adding a dependency on HAS_IOMEM, the driver will not be enabled on
architectures which don't support it.

Fixes: 09ef18bcd5ac ("rtc: use devm_platform_ioremap_resource() to simplify code")
Signed-off-by: David Gow &lt;davidgow@google.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Link: https://lore.kernel.org/r/20210127035146.1523286-1-davidgow@google.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
</feed>
