Files
linux/drivers/rtc
Mario Limonciello 1311a8f0d4 rtc: Adjust failure return code for cmos_set_alarm()
When mc146818_avoid_UIP() fails to return a valid value, this is because
UIP didn't clear in the timeout period. Adjust the return code in this
case to -ETIMEDOUT.

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>
Cc:  <stable@vger.kernel.org>
Fixes: cdedc45c57 ("rtc: cmos: avoid UIP when reading alarm time")
Fixes: cd17420ebe ("rtc: cmos: avoid UIP when writing alarm time")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20231128053653.101798-3-mario.limonciello@amd.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-12-17 22:33:54 +01:00
..
2022-06-24 21:24:02 +02:00
2023-10-16 16:54:15 +02:00
2021-08-10 23:21:46 +02:00
2023-10-16 16:54:15 +02:00
2022-06-24 21:24:02 +02:00
2023-10-15 23:01:08 +02:00
2021-04-29 23:03:26 +02:00
2021-10-01 23:28:28 +02:00
2023-04-26 11:40:26 +01:00
2020-12-03 23:43:23 +01:00