Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301654

Re: rtc-palmas: correct for bcd year

From Mark Salyzyn <salyzyn@android.com>
Newsgroups linux.kernel
Subject Re: rtc-palmas: correct for bcd year
Date 2016-01-05 17:10 +0100
Message-ID <qNClk-5bm-17@gated-at.bofh.it> (permalink)
References <qLw0F-33F-3@gated-at.bofh.it> <qNg1s-5Mg-25@gated-at.bofh.it> <qNguu-5WH-27@gated-at.bofh.it> <qNnmi-2ix-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/04/2016 04:00 PM, Alexandre Belloni wrote:
> I'd say that the proper course of action is to refuse to set dates 
> before 2000 and after 2100. See http://patchwork.ozlabs.org/patch/541037/ 
Got it.

We have an issue though, Android (or rather any embedded) devices must 
continue to function when date is manually set to any value between 1970 
and 2037. The issue here is a fresh device with a recently charged 
battery will _start_ at 1970 until ntp or cell time/date/locale is set 
and the device must continue to function in this vacuum. A device reboot 
should not result in the other calendar values being reset, should the 
year be wrong, as this will result in a bad user experience.

We will have to use a different patch on Android than upstream if dates 
before 2000 are deprecated.

All other factors (rollover, leap) can be corrected by frameworks and 
runtime since the rtc is generally secondary (ie: first rtc driver was 
in 1979, created a daemon to correct the flaws in the hardware clock 
using a cron job)

Sincerely -- Mark Salyzyn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: rtc-palmas: correct for bcd year Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-01-04 17:20 +0100
  Re: rtc-palmas: correct for bcd year Mark Salyzyn <salyzyn@android.com> - 2016-01-04 17:50 +0100
    Re: rtc-palmas: correct for bcd year Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-01-05 01:10 +0100
      Re: rtc-palmas: correct for bcd year Mark Salyzyn <salyzyn@android.com> - 2016-01-05 17:10 +0100

csiph-web