From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755630AbZBTQFS (ORCPT ); Fri, 20 Feb 2009 11:05:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754425AbZBTQE7 (ORCPT ); Fri, 20 Feb 2009 11:04:59 -0500 Received: from mx0.towertech.it ([213.215.222.73]:34934 "HELO mx0.towertech.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754133AbZBTQE6 (ORCPT ); Fri, 20 Feb 2009 11:04:58 -0500 Date: Fri, 20 Feb 2009 17:04:54 +0100 From: Alessandro Zummo To: rtc-linux@googlegroups.com Cc: Geert.Uytterhoeven@sonycom.com, Kyle McMartin , David Woodhouse , Richard Zidlicky , linux-parisc@vger.kernel.org, linuxppc-dev@ozlabs.org, linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [rtc-linux] [PATCH/RFC 0/5] Generic RTC class driver Message-ID: <20090220170454.04382e9e@i1501.lan.towertech.it> In-Reply-To: <1235144809-32468-1-git-send-email-Geert.Uytterhoeven@sonycom.com> References: <1235144809-32468-1-git-send-email-Geert.Uytterhoeven@sonycom.com> Organization: Tower Technologies X-Mailer: Sylpheed X-This-Is-A-Real-Message: Yes Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Feb 2009 16:46:44 +0100 Geert Uytterhoeven wrote: > Fortunately there already exists a generic RTC class driver: "rtc-parisc". > Despite it's name, it's platform-independent, as it's build on top of the RTC > abstraction used by "genrtc". > > This patch series > - adds a missing module alias to rtc-parisc, > - renames rtc-parisc to rtc-generic, > - converts the architectures that currently have CONFIG_GEN_RTC enabled in > their defconfig (m68k, parisc, powerpc) to rtc-generic, > - removes the obsolete rtc-ppc driver, > - removes the old genrtc driver. > > Note that genrtc may be used on other archictectures as well: at least alpha > has the required infrastructure ([gs]et_rtc_time()). The Kconfig rules allow > genrtc to be enabled on several others (cris, h8300, mn10300, um, x86, xtensa). > > Furthermore genrtc and rtc-generic are not 100% userspace compatible: > - /dev/rtc provided by genrtc uses a misc character device (10:135), > - /dev/rtc provided by rtc-generic uses a dynamic character device. Hello, my opinion on this kind of stuff is that I want to avoid the layering of implementations under the rtc subsystem. I'd rather prefer that each rtc device had its own driver. I've made error in the past, by accepting such kind of drivers, and would like to avoid that it happens again. Regarding the user space, the assumption that a device has a fixed major:minor number should be dropped as well. -- Best regards, Alessandro Zummo, Tower Technologies - Torino, Italy http://www.towertech.it