From: "Voipio Riku" <Riku.Voipio@movial.fi>
To: "David Brownell" <david-b@pacbell.net>
Cc: rtc-linux@googlegroups.com,
"Linux Kernel list" <linux-kernel@vger.kernel.org>,
"Riku Voipio" <riku.voipio@movial.fi>,
"Alessandro Zummo" <alessandro.zummo@towertech.it>
Subject: Re: [patch 2.6.19-git] rts-rs5c372 updates: more chips, alarm, 12hr mode, etc
Date: Mon, 11 Dec 2006 08:27:34 +0200 (EET) [thread overview]
Message-ID: <42002.80.222.56.248.1165818454.squirrel@webmail.movial.fi> (raw)
In-Reply-To: <200612081859.42995.david-b@pacbell.net>
> Update the rtc-rs5c372 driver:
> I suspect the
> issue wasn't that "mode 1" didn't work on that board; the original
> code to fetch the trim was broken. If "mode 1" really won't work,
> that's almost certainly a bug in that board's I2C driver.
It was not related to trim fetching. Yes, it very likely that the boards
i2c controller (i2c-iop3xx) is has a bug, but I'm not competent enough to
find out what it is actually sending out to the wire.
With your patch, the rtc acts like the chip would completely ignore the
"address" transfer, and starts reading from the last (default) register
anyway. Thus all the regs look shifted by one in the driver. With current
git driver results look like:
# cat /proc/driver/rtc ; sleep 1 ; echo one sec gone; cat /proc/driver/rtc
rtc_time : 06:16:55
rtc_date : 2006-12-11
24hr : yes
32.768 KHz
trim : 1
one sec gone
rtc_time : 06:16:56
rtc_date : 2006-12-11
24hr : yes
32.768 KHz
trim : 1
And same after your patch:
rtc_time : 16:23:28
rtc_date : 2012-11-01
alrm_time : **:01:00
alrm_date : ****-**-**
alrm_wakeup : no
alrm_pending : no
24hr : yes
crystal : 32.768 KHz
trim : 10
one sec gone
rtc_time : 16:24:28
rtc_date : 2012-11-01
alrm_time : **:01:00
alrm_date : ****-**-**
alrm_wakeup : no
alrm_pending : no
24hr : yes
crystal : 32.768 KHz
trim : 10
> + /* this implements the first (most portable) reading method
> + * specified in the datasheet.
> */
Why is this method considered more portable? Howabout making the read
method a module parameter?
next prev parent reply other threads:[~2006-12-11 6:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-09 2:59 David Brownell
2006-12-09 9:38 ` [rtc-linux] " Alessandro Zummo
2006-12-11 6:27 ` Voipio Riku [this message]
2006-12-11 19:55 ` David Brownell
2006-12-11 22:23 ` Voipio Riku
2006-12-11 23:33 ` Dan Williams
2006-12-12 8:20 ` David Brownell
2006-12-12 8:39 ` Riku Voipio
2006-12-12 8:30 ` David Brownell
2007-01-03 3:07 ` David Brownell
2007-01-03 22:51 ` Voipio Riku
2007-01-04 4:23 ` David Brownell
2007-01-04 12:05 ` Alessandro Zummo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42002.80.222.56.248.1165818454.squirrel@webmail.movial.fi \
--to=riku.voipio@movial.fi \
--cc=alessandro.zummo@towertech.it \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®