public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: "Voipio Riku" <Riku.Voipio@movial.fi>
Cc: rtc-linux@googlegroups.com,
	"Linux Kernel list" <linux-kernel@vger.kernel.org>,
	"Alessandro Zummo" <alessandro.zummo@towertech.it>,
	dan.j.williams@intel.com, i2c@lm-sensors.org
Subject: Re: [patch 2.6.19-git] rts-rs5c372 updates:  more chips, alarm, 12hr mode, etc
Date: Tue, 12 Dec 2006 00:30:42 -0800	[thread overview]
Message-ID: <200612120030.44554.david-b@pacbell.net> (raw)
In-Reply-To: <42003.80.222.56.248.1165875783.squirrel@webmail.movial.fi>

On Monday 11 December 2006 2:23 pm, Voipio Riku wrote:

> from what I saw, the driver simply passes messages over to the i2c
> controller. It even specifically mentiones that it supports repeated start
> conditions, as needed for read method #1. Comparing to 80219 manual[1], I
> did not spot anything obviously wrong.

I skimmed i2c-ixp3xx too, but have never spent much time with I2C controller
drivers or Intel's fancier XScales.


> >> 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.
> 
> > That's quite strange.  The docs on the RTC are quite clear about what's
> > supposed to happen with what I2C messages.  And I'd expect them to be
> > right ... especially since they behaved for me, and the original author
> > of that code!  That makes me suspect that your particular I2C controller
> > driver must not be issuing the protocol requests it should be, at least
> > on your hardware and revision.
> 
> Well at least I'm happy that there is now someone more experienced working
> on this driver. When I tried to get it working I could not find anyone
> with another board to verify if the original and/or my patch works for
> them..

Unfortunately our patches collided.  The original code worked for me
(other than bugs in the trim register).


> > Plus, if I understand things correctly, using mode #3 would break when
> > writing
> 
> I should not. Writing isn't related to reading methods according the
> datasheet[2]. It provides one addressing method for writing, and writing
> works fine our Thecus/Allnet hardware.

I see ... reading more closely "the internal address pointer is set to Fh
when the stop condition is met", namely right after each transaction.  It's
not like other chips with such pointers that I've used (they never reset it).

I don't mind if the "read all the registers" operation uses mode 3.  I'll
have to see if your updated version behaves (albeit without handling 12 hour
time, the alarm, etc) for me.

But I'm still concerned that switching to mode 3 seems to be just working
around a bug in some other driver, and that _other_ bug should be fixed.

- Dave


  parent reply	other threads:[~2006-12-12  8:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-09  2:59 [patch 2.6.19-git] rts-rs5c372 updates: more chips, alarm, 12hr mode, etc David Brownell
2006-12-09  9:38 ` [rtc-linux] " Alessandro Zummo
2006-12-11  6:27 ` Voipio Riku
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 [this message]
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=200612120030.44554.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=Riku.Voipio@movial.fi \
    --cc=alessandro.zummo@towertech.it \
    --cc=dan.j.williams@intel.com \
    --cc=i2c@lm-sensors.org \
    --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