aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorAlexandre Belloni <[email protected]>2019-04-11 00:16:29 +0200
committerAlexandre Belloni <[email protected]>2019-05-23 17:53:03 +0200
commitb3a50169762b14102a296a410d785f9ec1132ae1 (patch)
tree1eef64d1c9fb772200ad736dda2b2ef6fea4a753 /net/lapb/lapb_timer.c
parent097aa24b5db09a852516c467f2cd62e8adfd6bba (diff)
rtc: ds1307: properly handle oscillator failure flags
Stop enabling the oscillator and removing the oscillator failure flags in probe. Instead, return -EINVAL in .read_time when the oscillaotr is not start or when it failed at some point. The oscillator gets enabled on the first .set_time after failure and the failure flags are cleared. This also removes the possibility of an infinite loop at probe where a failing RTC will make the goto read_rtc to be taken every time. Tested on mcp79411. Reported-by: Mastro Gippo <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions