Mario Limonciello
120931db07
rtc: Add support for configuring the UIP timeout for RTC reads
...
The UIP timeout is hardcoded to 10ms for all RTC reads, but in some
contexts this might not be enough time. Add a timeout parameter to
mc146818_get_time() and mc146818_get_time_callback().
If UIP timeout is configured by caller to be >=100 ms and a call
takes this long, log a warning.
Make all callers use 10ms to ensure no functional changes.
Cc: <stable@vger.kernel.org> # 6.1.y
Fixes: ec5895c0f2d8 ("rtc: mc146818-lib: extract mc146818_avoid_UIP")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Tested-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Reviewed-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Acked-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Link: https://lore.kernel.org/r/20231128053653.101798-4-mario.limonciello@amd.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-12-17 22:33:55 +01:00
..
2023-03-17 15:16:33 +01:00
2022-06-24 21:24:02 +02:00
2023-09-06 01:25:15 +02:00
2023-10-16 16:54:15 +02:00
2021-08-10 23:21:46 +02:00
2021-08-10 00:09:21 +02:00
2023-10-16 16:54:15 +02:00
2023-10-21 19:19:06 +02:00
2021-05-25 00:36:11 +02:00
2023-03-17 23:03:16 +01:00
2023-03-17 23:03:16 +01:00
2023-03-17 23:03:16 +01:00
2023-06-06 23:29:37 +02:00
2023-06-06 23:29:37 +02:00
2023-07-27 23:31:29 +02:00
2023-03-17 23:03:17 +01:00
2023-08-10 09:45:41 +02:00
2019-05-30 11:26:37 -07:00
2023-03-17 23:03:17 +01:00
2023-08-10 09:45:41 +02:00
2023-10-16 06:33:00 +02:00
2023-08-10 09:45:41 +02:00
2021-07-10 01:53:39 +02:00
2021-06-20 22:24:52 +02:00
2023-06-06 23:29:37 +02:00
2019-05-21 10:50:45 +02:00
2023-10-02 00:13:57 +02:00
2023-03-17 23:03:17 +01:00
2023-12-17 22:33:55 +01:00
2022-06-24 21:24:02 +02:00
2020-11-19 12:50:12 +01:00
2023-08-27 23:50:22 +02:00
2020-11-19 12:50:12 +01:00
2019-05-30 11:26:32 -07:00
2023-08-17 01:09:50 +02:00
2021-02-06 00:58:24 +01:00
2019-10-07 01:07:35 +02:00
2019-10-07 01:07:35 +02:00
2022-11-15 21:01:51 +01:00
2023-08-27 23:50:22 +02:00
2023-08-16 01:32:08 +02:00
2022-02-09 13:00:45 +00:00
2022-11-15 21:01:51 +01:00
2023-06-06 23:29:37 +02:00
2023-03-17 23:23:22 +01:00
2021-04-17 11:21:04 +02:00
2020-11-19 12:50:12 +01:00
2023-06-06 23:29:37 +02:00
2023-08-02 11:18:22 -07:00
2023-07-27 23:31:29 +02:00
2023-08-17 00:55:56 +02:00
2023-06-06 23:29:37 +02:00
2023-10-15 23:01:08 +02:00
2023-06-06 23:29:37 +02:00
2023-10-15 23:17:05 +02:00
2023-06-06 23:29:37 +02:00
2023-07-27 23:31:29 +02:00
2023-03-17 23:03:17 +01:00
2022-08-23 22:27:58 +02:00
2019-05-21 10:50:45 +02:00
2022-04-11 11:48:01 +02:00
2023-03-17 23:03:17 +01:00
2023-06-06 23:29:37 +02:00
2021-04-29 23:03:26 +02:00
2023-10-13 12:29:08 +02:00
2023-08-27 23:48:32 +02:00
2023-08-16 01:27:01 +02:00
2023-07-27 23:32:08 +02:00
2023-08-16 01:32:08 +02:00
2023-06-26 01:19:11 +02:00
2019-06-19 17:09:55 +02:00
2023-07-27 23:31:29 +02:00
2020-11-19 12:50:12 +01:00
2023-07-27 23:31:29 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-03-16 11:12:11 +01:00
2021-03-11 09:48:09 +01:00
2023-08-28 00:01:51 +02:00
2023-06-06 23:29:37 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2023-02-01 09:13:35 +01:00
2019-06-19 17:09:55 +02:00
2023-03-17 23:03:17 +01:00
2023-03-17 23:03:17 +01:00
2023-12-17 22:33:55 +01:00
2021-10-01 23:28:28 +02:00
2023-03-21 21:15:10 +01:00
2022-05-18 00:20:39 +02:00
2023-02-09 23:31:46 +01:00
2023-07-27 23:31:29 +02:00
2023-03-17 23:03:17 +01:00
2022-12-11 18:14:01 +01:00
2019-11-18 15:23:54 +01:00
2020-11-19 12:50:12 +01:00
2023-07-27 23:31:29 +02:00
2023-07-27 23:31:29 +02:00
2023-10-13 12:29:08 +02:00
2023-03-17 23:03:17 +01:00
2023-07-27 23:31:29 +02:00
2023-08-10 09:45:41 +02:00
2021-03-10 11:06:33 +00:00
2023-02-22 12:25:32 +01:00
2023-10-15 22:38:50 +02:00
2022-03-23 19:58:39 +01:00
2022-03-25 11:42:50 +01:00
2023-03-17 23:03:17 +01:00
2023-10-13 12:29:08 +02:00
2023-02-01 09:13:35 +01:00
2023-08-27 23:53:06 +02:00
2023-06-06 23:29:37 +02:00
2023-06-06 23:29:37 +02:00
2023-06-06 23:29:37 +02:00
2023-03-17 23:03:18 +01:00
2023-07-27 23:31:29 +02:00
2023-10-15 22:37:57 +02:00
2023-03-17 23:03:18 +01:00
2021-02-02 14:25:50 +01:00
2022-03-23 19:58:37 +01:00
2023-03-17 23:03:18 +01:00
2020-11-19 12:50:12 +01:00
2023-10-13 12:29:08 +02:00
2023-10-15 22:37:25 +02:00
2020-11-19 12:50:12 +01:00
2023-03-17 23:03:18 +01:00
2020-11-19 12:50:12 +01:00
2022-12-11 20:56:33 +01:00
2020-11-19 12:50:12 +01:00
2022-12-15 23:34:31 +01:00
2020-11-19 12:50:12 +01:00
2023-08-16 01:32:08 +02:00
2023-03-17 23:03:18 +01:00
2023-07-27 23:31:29 +02:00
2023-06-06 23:29:37 +02:00
2023-07-27 23:31:29 +02:00
2023-08-16 01:32:08 +02:00
2019-06-19 17:09:55 +02:00
2023-07-27 23:31:29 +02:00
2023-06-06 23:29:37 +02:00
2023-06-06 23:29:37 +02:00
2023-07-27 23:31:29 +02:00
2023-08-27 23:50:22 +02:00
2023-07-27 23:31:29 +02:00
2019-06-19 17:09:55 +02:00
2023-04-26 11:40:26 +01:00
2023-06-06 23:29:37 +02:00
2023-03-17 23:03:18 +01:00
2021-07-10 01:53:39 +02:00
2023-06-06 23:29:37 +02:00
2023-10-13 12:29:08 +02:00
2022-11-15 21:25:44 +01:00
2023-03-17 23:03:18 +01:00
2023-10-16 16:54:15 +02:00
2023-06-26 00:53:19 +02:00
2020-11-19 12:50:12 +01:00
2020-11-19 12:50:12 +01:00
2023-08-17 00:53:00 +02:00
2023-07-27 23:31:29 +02:00
2020-11-19 12:50:12 +01:00
2023-09-06 01:26:04 +02:00
2023-08-10 09:35:28 +02:00
2023-07-27 23:31:29 +02:00
2023-03-17 23:03:18 +01:00
2020-12-03 23:43:23 +01:00
2023-07-27 23:31:29 +02:00
2023-08-27 23:50:22 +02:00
2023-08-17 01:17:34 +02:00
2023-09-06 01:26:04 +02:00
2023-03-17 23:03:18 +01:00
2020-11-19 12:50:12 +01:00
2020-11-19 12:50:12 +01:00
2023-09-06 01:26:04 +02:00
2023-06-06 23:29:37 +02:00
2023-03-17 23:03:18 +01:00
2023-03-17 23:03:19 +01:00
2022-11-15 21:01:51 +01:00