Johan Hovold
62ab6d70e5
rtc: pm8xxx: fix set-alarm race
...
commit c88db0eff9722fc2b6c4d172a50471d20e08ecc6 upstream.
Make sure to disable the alarm before updating the four alarm time
registers to avoid spurious alarms during the update.
Note that the disable needs to be done outside of the ctrl_reg_lock
section to prevent a racing alarm interrupt from disabling the newly set
alarm when the lock is released.
Fixes: 9a9a54ad7aa2 ("drivers/rtc: add support for Qualcomm PMIC8xxx RTC")
Cc: stable@vger.kernel.org # 3.1
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: David Collins <quic_collinsd@quicinc.com>
Link: https://lore.kernel.org/r/20230202155448.6715-2-johan+linaro@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-11 16:31:48 +01:00
..
2018-07-26 15:08:53 +02:00
2018-11-21 09:19:23 +01:00
2019-12-17 20:35:43 +01:00
2021-03-04 09:39:44 +01:00
2018-04-10 10:22:27 -07:00
2018-05-21 22:34:38 +02:00
2020-01-27 14:50:20 +01:00
2020-04-23 10:30:18 +02:00
2018-03-01 10:49:41 +01:00
2018-03-27 10:45:05 +02:00
2018-05-17 22:23:25 +02:00
2018-03-02 10:12:23 +01:00
2018-06-06 11:15:43 -07:00
2019-11-20 18:47:52 +01:00
2016-10-19 08:45:48 +02:00
2018-05-17 22:23:14 +02:00
2018-03-17 14:20:57 +01:00
2018-03-02 10:09:58 +01:00
2018-03-17 14:20:56 +01:00
2018-07-11 20:41:01 +02:00
2020-01-17 19:47:13 +01:00
2022-01-27 09:04:15 +01:00
2018-07-07 17:52:26 +02:00
2018-08-14 22:56:27 +02:00
2018-07-07 17:52:26 +02:00
2019-05-08 07:21:45 +02:00
2018-03-02 10:11:02 +01:00
2018-03-02 10:11:02 +01:00
2019-05-08 07:21:49 +02:00
2016-09-02 01:24:06 +02:00
2018-07-26 15:08:53 +02:00
2016-09-02 01:24:06 +02:00
2017-08-15 08:06:14 +01:00
2018-05-03 22:08:00 +02:00
2018-03-02 10:09:58 +01:00
2018-03-02 10:09:58 +01:00
2018-03-02 10:09:58 +01:00
2021-05-22 10:59:43 +02:00
2018-03-02 10:09:58 +01:00
2018-03-02 10:09:58 +01:00
2020-10-01 13:14:38 +02:00
2018-03-02 10:09:58 +01:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2020-01-27 14:50:19 +01:00
2018-06-20 12:38:14 +02:00
2018-05-21 22:34:36 +02:00
2018-03-02 10:09:58 +01:00
2018-03-02 10:09:58 +01:00
2017-11-02 11:10:55 +01:00
2018-03-02 10:09:58 +01:00
2017-09-01 01:10:11 +02:00
2018-03-02 10:09:58 +01:00
2018-07-07 17:52:26 +02:00
2020-08-26 10:31:00 +02:00
2018-12-05 19:32:13 +01:00
2020-02-14 16:33:24 -05:00
2017-06-20 12:19:14 +02:00
2019-11-20 18:47:52 +01:00
2018-04-03 16:40:46 +02:00
2018-03-17 14:20:51 +01:00
2018-03-01 10:49:41 +01:00
2018-03-17 14:20:50 +01:00
2018-03-02 10:09:58 +01:00
2018-05-03 22:08:00 +02:00
2018-05-18 09:38:22 +02:00
2019-01-09 17:38:48 +01:00
2018-03-02 10:12:19 +01:00
2018-03-02 10:09:58 +01:00
2018-03-02 10:09:58 +01:00
2018-07-12 21:17:36 +02:00
2018-03-02 10:09:58 +01:00
2018-03-17 14:20:46 +01:00
2018-03-02 10:09:58 +01:00
2018-03-02 10:09:58 +01:00
2017-07-31 00:17:48 +02:00
2019-12-13 08:51:35 +01:00
2018-08-14 23:38:45 +02:00
2021-07-28 11:13:44 +02:00
2018-07-07 17:52:26 +02:00
2022-02-08 18:23:18 +01:00
2018-03-17 14:20:56 +01:00
2018-03-01 10:49:41 +01:00
2018-06-20 12:43:11 +02:00
2020-01-17 19:47:13 +01:00
2022-06-14 16:59:32 +02:00
2018-04-03 16:40:48 +02:00
2018-05-03 22:08:00 +02:00
2023-01-18 11:30:32 +01:00
2018-05-22 09:47:17 +02:00
2018-03-02 10:12:17 +01:00
2020-04-17 10:48:51 +02:00
2018-04-25 13:24:13 +10:00
2016-09-02 01:24:06 +02:00
2018-05-03 22:08:00 +02:00
2018-03-02 10:09:58 +01:00
2020-01-27 14:51:07 +01:00
2019-11-06 13:05:33 +01:00
2020-01-27 14:50:56 +01:00
2018-03-02 10:09:58 +01:00
2018-07-28 14:49:25 +02:00
2019-10-07 18:57:12 +02:00
2018-03-02 10:09:58 +01:00
2019-11-20 18:46:18 +01:00
2017-10-12 16:30:30 +02:00
2023-03-11 16:31:48 +01:00
2021-07-20 16:16:14 +02:00
2018-03-01 10:49:41 +01:00
2017-08-22 12:05:21 +02:00
2022-01-27 09:04:33 +01:00
2018-07-07 17:52:26 +02:00
2018-03-02 10:09:58 +01:00
2018-03-17 14:20:42 +01:00
2018-03-02 10:09:58 +01:00
2018-03-01 10:49:40 +01:00
2018-03-17 14:20:45 +01:00
2017-09-05 09:55:02 +02:00
2020-01-27 14:51:06 +01:00
2019-11-20 18:45:25 +01:00
2018-03-02 10:12:24 +01:00
2018-03-02 10:09:58 +01:00
2020-11-05 11:08:54 +01:00
2018-03-02 10:09:58 +01:00
2018-05-17 22:43:22 +02:00
2019-12-13 08:51:16 +01:00
2018-08-14 23:38:47 +02:00
2019-12-01 09:16:52 +01:00
2020-10-01 13:14:37 +02:00
2017-11-02 11:10:55 +01:00
2018-05-31 23:02:11 +02:00
2019-05-08 07:21:46 +02:00
2018-03-01 10:49:27 +01:00
2023-01-18 11:30:30 +01:00
2018-03-02 10:12:21 +01:00
2023-01-18 11:30:31 +01:00
2018-03-01 10:49:41 +01:00
2018-05-03 22:08:00 +02:00
2021-07-20 16:15:41 +02:00
2018-07-11 20:42:08 +02:00
2016-11-04 23:31:33 +01:00
2021-01-06 14:45:01 +01:00
2018-06-04 14:36:14 +02:00
2019-11-20 18:45:25 +01:00
2018-07-07 17:52:26 +02:00
2018-07-12 20:16:10 +02:00
2018-05-17 22:54:24 +02:00
2021-09-22 11:47:57 +02:00
2017-09-04 14:41:02 +01:00
2019-11-20 18:47:52 +01:00
2018-05-17 22:54:21 +02:00
2018-03-01 10:49:41 +01:00
2022-04-15 14:15:00 +02:00
2019-05-31 06:46:26 -07:00
2018-05-03 22:08:00 +02:00
2018-03-27 10:45:05 +02:00