Re: [PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-24 Thread Alexander Holler
Am 24.04.2013 23:14, schrieb Andrew Morton: On Tue, 23 Apr 2013 17:47:20 +0200 Alexander Holler wrote: "time_was_set_once" and have choosen one day just in case something needs really long to boot (e.g. because of some lengthy fsck or whatever else). A solution to both problems might be to c

Re: [PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-24 Thread Andrew Morton
On Tue, 23 Apr 2013 17:47:20 +0200 Alexander Holler wrote: > >>> "time_was_set_once" and have choosen one day just in case something > >>> needs really long to boot (e.g. because of some lengthy fsck or whatever > >>> else). > >>> > >>> A solution to both problems might be to change the logic fo

Re: [PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-23 Thread Alexander Holler
Am 23.04.2013 12:17, schrieb Alexander Holler: Am 23.04.2013 12:13, schrieb Alexander Holler: Am 23.04.2013 12:08, schrieb Alexander Holler: Am 23.04.2013 10:51, schrieb Alexander Holler: Am 23.04.2013 01:38, schrieb Andrew Morton: On Fri, 19 Apr 2013 17:14:12 +0200 Alexander Holler wrote:

Re: [PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-23 Thread Alexander Holler
Am 23.04.2013 12:13, schrieb Alexander Holler: Am 23.04.2013 12:08, schrieb Alexander Holler: Am 23.04.2013 10:51, schrieb Alexander Holler: Am 23.04.2013 01:38, schrieb Andrew Morton: On Fri, 19 Apr 2013 17:14:12 +0200 Alexander Holler wrote: drivers/rtc/hctosys (CONFIG_RTC_HCTOSYS) doesn'

Re: [PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-23 Thread Alexander Holler
Am 23.04.2013 12:08, schrieb Alexander Holler: Am 23.04.2013 10:51, schrieb Alexander Holler: Am 23.04.2013 01:38, schrieb Andrew Morton: On Fri, 19 Apr 2013 17:14:12 +0200 Alexander Holler wrote: drivers/rtc/hctosys (CONFIG_RTC_HCTOSYS) doesn't work for rtc-hid-sensor-time because it will b

Re: [PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-23 Thread Alexander Holler
Am 23.04.2013 10:51, schrieb Alexander Holler: Am 23.04.2013 01:38, schrieb Andrew Morton: On Fri, 19 Apr 2013 17:14:12 +0200 Alexander Holler wrote: drivers/rtc/hctosys (CONFIG_RTC_HCTOSYS) doesn't work for rtc-hid-sensor-time because it will be called in late_init, and thus before rtc-hid-s

Re: [PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-23 Thread Alexander Holler
Am 23.04.2013 01:38, schrieb Andrew Morton: On Fri, 19 Apr 2013 17:14:12 +0200 Alexander Holler wrote: drivers/rtc/hctosys (CONFIG_RTC_HCTOSYS) doesn't work for rtc-hid-sensor-time because it will be called in late_init, and thus before rtc-hid-sensor-time gets loaded. Isn't that true of al

Re: [PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-22 Thread Andrew Morton
On Fri, 19 Apr 2013 17:14:12 +0200 Alexander Holler wrote: > drivers/rtc/hctosys (CONFIG_RTC_HCTOSYS) doesn't work for > rtc-hid-sensor-time because it will be called in late_init, and thus before > rtc-hid-sensor-time gets loaded. Isn't that true of all RTC drivers which are built as modules?

[PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-19 Thread Alexander Holler
drivers/rtc/hctosys (CONFIG_RTC_HCTOSYS) doesn't work for rtc-hid-sensor-time because it will be called in late_init, and thus before rtc-hid-sensor-time gets loaded. To set the time through rtc-hid-sensor-time at startup, the module now checks by default if the system time is before 1970-01-02 and