From: Alessandro Zummo <alessandro.zummo@towertech.it>
To: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Linux/m68k <linux-m68k@vger.kernel.org>,
Richard Zidlicky <rz@linux-m68k.org>,
rtc-linux@googlegroups.com, linux-parisc@vger.kernel.org,
Development <linux-kernel@vger.kernel.org>,
David, Kyle McMartin <kyle@mcmartin.ca>,
Linux/PPC Development <linuxppc-dev@ozlabs.org>,
Linux, Woodhouse <dwmw2@infradead.org>
Subject: Re: [rtc-linux] Re: [PATCH/RFC 0/5] Generic RTC class driver
Date: Mon, 2 Mar 2009 12:09:50 +0100 [thread overview]
Message-ID: <20090302120950.0d35e06c@i1501.lan.towertech.it> (raw)
In-Reply-To: <alpine.LRH.2.00.0903021116450.25117@vixen.sonytel.be>
On Mon, 2 Mar 2009 11:28:01 +0100 (CET)
Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> wrote:
> So I can solve my problem (autoloading the RTC driver on PS3 by udev) by
> converting the old genrtc driver into a platform device driver and creating
> platform devices where appropriate.
yes. btw, if you are building a kernel specific for the PS3, I would
compile the rtc driver statically, otherwise it won't be available
early on boot.
> However, this doesn't solve the distro's problem: as the old RTC framework
> depends on RTC_LIB=n, you cannot have both old and new RTC drivers in your
> (single) distro kernel. That's why dmwm2 created drivers/rtc/rtc-ppc.c: Fedora
> had to support machines with both old and new RTC drivers. As all of the old
> drivers are actually behind the ppc_md.[sg]et_rtc_time() abstraction, this was
> very easy.
ok, generic kernel. you will have to load the modules on initrd. no, sadly you
can't have both of them. you might stick with the old interface or
convert them all.
> Hence it's all or nothing, and we have to convert all of them.
>
> drivers/rtc/rtc-generic.c would allow to have a working system without old
> RTC drivers, until all low-level code has been converted to individual RTC
> drivers.
I know but I have enough experience to foresee that once a generic over generic
framework is in place it's very hard to get rid of it because people
will have no incentives.
If you really need rtc-generic you can keep using it even if it's
not in the kernel, distributions often have their specific
set of kernel patches.
But I'd strongly suggest to plan and execute a conversion process.
> > Layering a generic framework over another generic framework
> > is quite a nonsense .
>
> IMHO these two generic frameworks are quite different: [sg]et_rtc_time()
> abstracts the low-level RTC hardware interface, while RTC class handles the
> interaction with userspace.
When I wrote it my intention was to make it as an abstraction _between_
the userspace and the hardware according to the platform/device model.
--
Best regards,
Alessandro Zummo,
Tower Technologies - Torino, Italy
http://www.towertech.it
next prev parent reply other threads:[~2009-03-02 11:09 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-20 15:46 [PATCH/RFC 0/5] Generic RTC class driver Geert Uytterhoeven
2009-02-20 15:46 ` [PATCH/RFC 1/5] rtc-parisc: Add missing module alias Geert Uytterhoeven
2009-02-20 15:46 ` [PATCH/RFC 2/5] pa-risc: Rename rtc-parisc to rtc-generic Geert Uytterhoeven
2009-02-20 15:46 ` [PATCH/RFC 3/5] m68k: Enable rtc-generic Geert Uytterhoeven
2009-02-20 15:46 ` [PATCH/RFC 4/5] powerpc: Enable rtc-generic, and kill rtc-ppc Geert Uytterhoeven
2009-02-20 15:46 ` [PATCH/RFC 5/5] rtc: Kill genrtc, as all its users have been converted to rtc-generic Geert Uytterhoeven
2009-02-20 16:04 ` [rtc-linux] [PATCH/RFC 0/5] Generic RTC class driver Alessandro Zummo
2009-02-23 12:34 ` Geert Uytterhoeven
2009-02-23 15:05 ` [rtc-linux] " Alessandro Zummo
2009-02-24 17:56 ` Geert Uytterhoeven
2009-02-24 18:37 ` Alessandro Zummo
2009-02-25 1:14 ` Brad Boyer
2009-02-25 9:58 ` Geert Uytterhoeven
2009-02-24 21:35 ` [rtc-linux] " David Woodhouse
2009-02-24 22:11 ` Alessandro Zummo
2009-02-24 22:32 ` David Woodhouse
2009-02-25 10:00 ` Geert Uytterhoeven
2009-02-25 10:18 ` [rtc-linux] " Alessandro Zummo
2009-02-27 17:17 ` Maciej W. Rozycki
2009-02-27 17:19 ` Alessandro Zummo
2009-02-27 18:55 ` Richard Zidlicky
2009-03-02 9:54 ` Geert Uytterhoeven
2009-03-02 10:03 ` Alessandro Zummo
2009-03-02 10:28 ` Geert Uytterhoeven
2009-03-02 11:09 ` Alessandro Zummo [this message]
2009-03-03 10:41 ` Geert Uytterhoeven
2009-03-03 13:53 ` Alessandro Zummo
2009-03-03 19:06 ` Paul Mundt
2009-03-04 8:26 ` Geert Uytterhoeven
2009-03-04 12:47 ` Alessandro Zummo
2009-03-04 12:51 ` Geert Uytterhoeven
2009-02-25 9:54 ` [rtc-linux] " Geert Uytterhoeven
2009-02-24 18:46 ` Helge Deller
2009-02-25 9:54 ` Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090302120950.0d35e06c@i1501.lan.towertech.it \
--to=alessandro.zummo@towertech.it \
--cc=Geert.Uytterhoeven@sonycom.com \
--cc=dwmw2@infradead.org \
--cc=kyle@mcmartin.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=rtc-linux@googlegroups.com \
--cc=rz@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).