Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264545AbUD2N6r (ORCPT ); Thu, 29 Apr 2004 09:58:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264561AbUD2N6r (ORCPT ); Thu, 29 Apr 2004 09:58:47 -0400 Received: from gonzo.one-2-one.net ([217.115.142.69]:59837 "EHLO gonzo.webpack.hosteurope.de") by vger.kernel.org with ESMTP id S264545AbUD2N6p (ORCPT ); Thu, 29 Apr 2004 09:58:45 -0400 Envelope-to: linux-kernel@vger.kernel.org Date: Thu, 29 Apr 2004 15:58:29 +0200 From: stefan.eletzhofer@eletztrick.de To: Linux Kernel Mailing List Cc: Ian Campbell , Russell King - ARM Linux Subject: Re: [PATCH] 2.6 I2C epson 8564 RTC chip Message-ID: <20040429135829.GB23468@gonzo.local> Reply-To: stefan.eletzhofer@eletztrick.de Mail-Followup-To: stefan.eletzhofer@eletztrick.de, Linux Kernel Mailing List , Ian Campbell , Russell King - ARM Linux References: <20040429120250.GD10867@gonzo.local> <1083242482.26762.30.camel@icampbell-debian> <20040429135408.G16407@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040429135408.G16407@flint.arm.linux.org.uk> User-Agent: Mutt/1.3.27i Organization: Eletztrick Computing X-HE-MXrcvd: no Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2284 Lines: 51 On Thu, Apr 29, 2004 at 01:54:08PM +0100, Russell King wrote: > On Thu, Apr 29, 2004 at 01:41:23PM +0100, Ian Campbell wrote: > > Hi Stefan, > > > > > This driver only does the low-level I2C stuff, the rtc misc device > > > driver is a separate driver module which I will send a patch for soon. > > > > I have a patch (attached, it could do with cleaning up) for the Dallas > > DS1307 I2C RTC which I ported from the 2.4 rmk patch, originally written > > by Intrinsyc. Currently it includes both the I2C and the RTC bits in the > > same driver. > > Have a look at drivers/acorn/char/{i2c,pcf8583}.[ch] > > > Do you think it is realistic/possible to have the same generic RTC > > driver speak to multiple I2C devices, from what I can see in your driver > > the two chips seem pretty similar and the differences could probably be > > abstracted away. Perhaps that is your intention from the start? > > > > I guess I will wait until you post the RTC misc driver and try and make > > the DS1307 one work with that before I submit it. > > If you look at the last 2.6-rmk patch, you'll notice that it contains > an abstracted RTC driver - I got peed off with writing the same code > to support the user interfaces to the variety of RTCs over and over > again. (Ones which are simple 32-bit second counters with alarms > through to ones which return D/M/Y H:M:S.C format.) Oh, I wasn't aware of that. I assume that one is not in linus bk tree already? > > -- > Russell King > Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ > maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/ > 2.6 Serial core > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- Eletztrick Computing - Customized Linux Development Stefan Eletzhofer, Marktstrasse 43, DE-88214 Ravensburg http://www.eletztrick.de - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/