public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* invalid default values in RTC chip
@ 2008-10-14  9:00 Jüri Reitel
  2008-10-16 20:58 ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: Jüri Reitel @ 2008-10-14  9:00 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-10-23  9:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14  9:00 invalid default values in RTC chip Jüri Reitel
2008-10-16 20:58 ` Andrew Morton
2008-10-16 21:41   ` [rtc-linux] " Alessandro Zummo
2008-10-16 22:22     ` David Brownell
2008-10-23  7:43       ` Jüri Reitel
2008-10-23  9:04         ` David Brownell
2008-10-23  9:55           ` Jüri Reitel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox