Re: [PATCH v2] RTC: RK808: Work around hardware bug on November 31st

2015-12-10 Thread Julius Werner
> I'll try to review and evaluate both solution by the end of the week (no > guarantee though). To summarize, it's a pretty simple trade-off. Do you: a) try to detect every time the RTC deviated from the real-world time and correct it instantly? This can be done most of the time but there are edg

Re: [PATCH v2] RTC: RK808: Work around hardware bug on November 31st

2015-12-10 Thread Alexandre Belloni
Hi Julius, Doug, On 09/12/2015 at 13:32:52 -0800, Julius Werner wrote : > > Thinking about all this: these's actually a totally different > > alternative approach we could take if you wanted. It would fix S5 and > > avoid all the anchor stuff, unless I'm crazy. > > > > Basically totally give up o

Re: [PATCH v2] RTC: RK808: Work around hardware bug on November 31st

2015-12-09 Thread Julius Werner
> Thinking about all this: these's actually a totally different > alternative approach we could take if you wanted. It would fix S5 and > avoid all the anchor stuff, unless I'm crazy. > > Basically totally give up on the RTC time reflecting reality. Add a > "real time to rk808" and "rk808 time to

Re: [PATCH v2] RTC: RK808: Work around hardware bug on November 31st

2015-12-08 Thread Doug Anderson
Julius, On Mon, Dec 7, 2015 at 9:21 PM, Julius Werner wrote: > In Fuzhou, China, the month of November seems to be having 31 days. > That's nice and all (I'm sure you can get a lot more done in a year that > way), but back here in other parts of the world we are not so lucky. > Therefore, we need

[PATCH v2] RTC: RK808: Work around hardware bug on November 31st

2015-12-07 Thread Julius Werner
In Fuzhou, China, the month of November seems to be having 31 days. That's nice and all (I'm sure you can get a lot more done in a year that way), but back here in other parts of the world we are not so lucky. Therefore, we need to compensate for these extra days existing only in the RTC's imaginat