Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757378AbYABOzU (ORCPT ); Wed, 2 Jan 2008 09:55:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753450AbYABOzH (ORCPT ); Wed, 2 Jan 2008 09:55:07 -0500 Received: from wa-out-1112.google.com ([209.85.146.182]:13770 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752823AbYABOzD (ORCPT ); Wed, 2 Jan 2008 09:55:03 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=n1HDQWL0ysW/HV+/t21Lc+Sw8Tc8f2/XNt6Dn6CQaX7b0kmAmyBdwqYbJmOqOJYvovM0gDEZBz5BzOYdobjaI7A0Scr2SElrH6w31bA+1GXJnw8KFu2f78JZew6getep0PW8vPqC7kuUrvwZvlmBKbh3C8qUu42oVWmGdInWGRA= Message-ID: <3ae72650801020655h6ec31ce8n5cd9014c00c9f6ad@mail.gmail.com> Date: Wed, 2 Jan 2008 15:55:00 +0100 From: "Kay Sievers" To: "Ingo Molnar" Subject: Re: [PATCH 0/4] PM: Do not destroy/create devices while suspended (rev. 2) Cc: "Rafael J. Wysocki" , "pm list" , "ACPI Devel Maling List" , "Alan Stern" , "Andrew Morton" , "Len Brown" , LKML , "Pavel Machek" , "Greg KH" , "David Brownell" In-Reply-To: <20080102131529.GA32160@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200801020032.45529.rjw@sisk.pl> <20080102105217.GA14731@elte.hu> <200801021356.59865.rjw@sisk.pl> <20080102131529.GA32160@elte.hu> X-Google-Sender-Auth: 102dac149ff2ceb0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1459 Lines: 37 On Jan 2, 2008 2:15 PM, Ingo Molnar wrote: > A stupid question. The old RTC driver is in > drivers/char/rtc.c, and maps to: > > crw-r--r-- 1 root root 10, 135 Oct 25 18:02 /dev/rtc > > the new driver is in drivers/rtc/*, and maps to: > > crw-r--r-- 1 root root 254, 0 Dec 12 02:30 /dev/rtc0 > > but all the x86 distro boxes i have access to make use of /dev/rtc. > There's no symlink set up from /dev/rtc to /dev/rtc0 either. So it > appears to me that the new RTC driver isnt actually utilized on most > distributions. > > shouldnt we provide a Kconfig way of replacing dev 10:135 with the new > driver's 254:0 device? (while keeping all the current modes of operation > as well, of course.) It's all supposed to be 100% ioctl ABI compatible > with the old driver, right? It's not compatible enough to "fake" only the old major/minor. Userspace must be fixed not to depend on stuff like: /proc/sys/dev/rtc/max-user-freq: http://lkml.org/lkml/2007/8/4/183 > That way distros could start migrating to it > as well, without depending on any udev hackery. It's in the default udev setup: KERNEL=="rtc|rtc0", MODE="0644" KERNEL=="rtc0", SYMLINK+="rtc" Kay -- 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/