Skip to content
Commit aa0be0f4 authored by John Stultz's avatar John Stultz Committed by Thomas Gleixner
Browse files

RTC: Propagate error handling via rtc_timer_enqueue properly



In cases where RTC hardware does not support alarms, the virtualized
RTC interfaces did not have a way to propagate the error up to userland.

This patch extends rtc_timer_enqueue so it catches errors from the hardware
and returns them upwards to the virtualized interfaces. To simplify error
handling, it also internalizes the management of the timer->enabled bit
into rtc_timer_enqueue and rtc_timer_remove.

Also makes rtc_timer_enqueue and rtc_timer_remove static.

Reported-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Reported-by: default avatarAndreas Schwab <schwab@linux-m68k.org>
Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Diagnosed-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Tested-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
LKML-Reference: <1295565973-14358-1-git-send-email-john.stultz@linaro.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent db6b175f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment