Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932224AbVIGTmZ (ORCPT ); Wed, 7 Sep 2005 15:42:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932233AbVIGTmZ (ORCPT ); Wed, 7 Sep 2005 15:42:25 -0400 Received: from fed1rmmtao11.cox.net ([68.230.241.28]:46027 "EHLO fed1rmmtao11.cox.net") by vger.kernel.org with ESMTP id S932224AbVIGTmZ (ORCPT ); Wed, 7 Sep 2005 15:42:25 -0400 Date: Wed, 7 Sep 2005 12:42:24 -0700 From: Tom Rini To: "Maciej W. Rozycki" Cc: viro@ZenIV.linux.org.uk, "David S. Miller" , torvalds@osdl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Kconfig fix (GEN_RTC dependencies) Message-ID: <20050907194224.GE3966@smtp.west.cox.net> References: <20050906005645.GQ5155@ZenIV.linux.org.uk> <20050905.185141.44096788.davem@davemloft.net> <20050906022423.GT5155@ZenIV.linux.org.uk> <20050906174818.GB3966@smtp.west.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1486 Lines: 31 On Wed, Sep 07, 2005 at 07:06:25PM +0100, Maciej W. Rozycki wrote: > On Tue, 6 Sep 2005, Tom Rini wrote: > > > > Yep, it's an excuse for platform maintainers not to write proper drivers. > > > > I talked with Al about this off list a bit, and pointed out it's > > different than it appears. GEN_RTC really is a mostly-generic RTC > > driver. There's some fakey stuff going on for UIE (all under > > GEN_RTC_X), but the real meat of the driver is common export get/set > > time and per-arch (which can abstract further, see ppc32) poke the > > hardware for the time. There's 2 (afaik) problems, one being a lack of > > alarm support, and the other being hardware access isn't (today) > > abstracted out far enough for i2c stuff to work. > > The generic problem with the generic driver is it only supports the bare > minimum an RTC might support and no way to provide access to what more > sophisticated hardware may implement (e.g. an IRQ). There is simply no > room for that in the API. And I have seen proposals for reducing the > MC146818 to GEN_RTC, too... Yes, that's in some ways a feature. Personally I tie IRQ support to alarm, but perhaps that's just my lack of exposure. -- Tom Rini http://gate.crashing.org/~trini/ - 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/