diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-11-28 06:36:51 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2023-12-17 22:33:54 +0100 |
commit | 1311a8f0d4b23f58bbababa13623aa40b8ad4e0c (patch) | |
tree | 4ad0f29cefb328949bdb80dd87233b2c817fe67b /drivers/rtc/rtc-ftrtc010.c | |
parent | rtc: mc146818-lib: Adjust failure return code for mc146818_get_time() (diff) | |
download | linux-1311a8f0d4b23f58bbababa13623aa40b8ad4e0c.tar.xz linux-1311a8f0d4b23f58bbababa13623aa40b8ad4e0c.zip |
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: cdedc45c579f ("rtc: cmos: avoid UIP when reading alarm time")
Fixes: cd17420ebea5 ("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>
Diffstat (limited to 'drivers/rtc/rtc-ftrtc010.c')
0 files changed, 0 insertions, 0 deletions