Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754548AbYFBW2E (ORCPT ); Mon, 2 Jun 2008 18:28:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752576AbYFBW1y (ORCPT ); Mon, 2 Jun 2008 18:27:54 -0400 Received: from outbound-wa4.frontbridge.com ([216.32.181.16]:50346 "EHLO WA4EHSOBE005.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752564AbYFBW1x (ORCPT ); Mon, 2 Jun 2008 18:27:53 -0400 X-BigFish: VPS-32(zz1432R98dR7efV1805M873fnzz10d3izzz2fh6bh61h) X-Spam-TCS-SCL: 0:0 Message-ID: <484473E6.5060400@am.sony.com> Date: Mon, 2 Jun 2008 15:27:50 -0700 From: Geoff Levand User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Alessandro Zummo CC: rtc-linux@googlegroups.com, linuxppc-dev list , rz@linux-m68k.org, LKML Kernel Subject: Re: [rtc-linux] state of GEN_RTC vs rtc subsystem References: <47B18612-66A3-476C-B81C-F2FD11CE9A64@kernel.crashing.org> <20080220180325.46446675@i1501.lan.towertech.it> <48408394.8000406@am.sony.com> In-Reply-To: <48408394.8000406@am.sony.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Jun 2008 22:27:50.0804 (UTC) FILETIME=[E46BE540:01C8C4FF] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1464 Lines: 41 Geoff Levand wrote: > Alessandro Zummo wrote: >> On Wed, 20 Feb 2008 10:11:23 -0600 >> Kumar Gala wrote: >> >>> >>> Is the functionality provided by drivers/char/gen_rtc.c completely >>> handled by the rtc subsystem in drivers/rtc? >>> >>> I ask for two reasons: >>> 1. should we make it mutually exclusive in Kconfig >>> 2. I've enabled both and get (we'll my defconfig did): >> >> They shouldn't be enabled at once. I think a patch >> for Kconfig has been recently submitted to give a warning >> in such a case. >> >> rtc-cmos should be able to handle the vast majority of x86 >> rtcs out there. > > gen_rtc was hooked up to the powerpc platform > ppc_md.set_rtc_time and ppc_md.get_rtc_time via the arch > specific get_rtc_time() and set_rtc_time() routines. > >>From what I can tell, those generic rtc routines the powerpc > arch provides are not properly hooked into the new rtc subsystem. > This causes problems for multi-platform builds where some platforms > must use gen_rtc, and some must the new rtc subsytem. Just to follow up, I found that David Woodhouse has submitted a patch which does this: http://patchwork.ozlabs.org/linuxppc/patch?id=18139 -Geoff -- 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/