lkml.org 
[lkml]   [2008]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: invalid default values in RTC chip
On Tue, 14 Oct 2008 12:00:21 +0300
J__ri Reitel <juri.reitel@liewenthal.ee> wrote:

> 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?
>

(cc's added)


\
 
 \ /
  Last update: 2008-10-16 23:03    [W:0.047 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site