invalid default values in RTC chip

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jüri Reitel
Date: Tuesday, October 14, 2008 - 2:00 am

Hi,

My question relates to RTC driver linux/drivers/rtc/rtc-ds1307.c for 
device m41t00. Driver probe function will fail if some of the chip's 
registers contain invalid date time values i.e. if month register is 32 
or minutes is 61. Is this correct behavior? Probe function's purpose is 
to check if the device is as was assumed (this time RTC and it is). The 
chip's values are incorrect but the chip works, even the m41t00 chip 
manual states that after initial powerup (RTC battery power applied) 
internal registers will contain random data.

There are two solutions first is driver patch and another is i2c-dev and 
i2cset tool to use from user space during bootup. Whitch one should be used?

PS. please add me to CC also.

JR
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
invalid default values in RTC chip, Jüri Reitel, (Tue Oct 14, 2:00 am)
Re: invalid default values in RTC chip, Andrew Morton, (Thu Oct 16, 1:58 pm)
Re: [rtc-linux] Re: invalid default values in RTC chip, Alessandro Zummo, (Thu Oct 16, 2:41 pm)
Re: [rtc-linux] Re: invalid default values in RTC chip, David Brownell, (Thu Oct 16, 3:22 pm)
Re: [rtc-linux] Re: invalid default values in RTC chip, Jüri Reitel, (Thu Oct 23, 12:43 am)
Re: [rtc-linux] Re: invalid default values in RTC chip, David Brownell, (Thu Oct 23, 2:04 am)
Re: [rtc-linux] Re: invalid default values in RTC chip, Jüri Reitel, (Thu Oct 23, 2:55 am)