Skip to content
Commit a6ceee26 authored by Alexander Stein's avatar Alexander Stein Committed by Alexandre Belloni
Browse files

rtc: pcf85063: Fix reading alarm

If the alarms are disabled the topmost bit (AEN_*) is set in the alarm
registers. This is also interpreted in BCD number leading to this warning:
rtc rtc0: invalid alarm value: 2022-09-21T80:80:80

Fix this by masking alarm enabling and reserved bits.

Fixes: 05cb3a56

 ("rtc: pcf85063: add alarm support")
Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20220921074141.3903104-1-alexander.stein@ew.tq-group.com
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent fe0157ba
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