Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.)

From: David Brownell
Date: Fri Mar 28 2008 - 16:04:52 EST


[ CC's trimmed a bit ]

On Friday 28 March 2008, Mark Lord wrote:
> > +# These legacy RTC drivers just cause too many conflicts with the generic
> > +# RTC framework ... let's not even try to coexist any more.
> ...
>
> Thanks, David.  Could you perhaps also update the option descriptions
> to clearly indicate which set of RTCs are the new ones, and which are
> the old ones that are going away someday?

Hmm, I thought that would be clear from context.
"These" (drivers/char) legacy RTC drivers (old),
vs generic RTC framework (toplevel driver Kconfig).

Admittedly the *previous* Kconfig was troublesome,
at the UI level (vs. those comments outside the GUI).


A more general issue seems to be what to do with
those legacy RTC drivers. Few of them seem to
have maintainers. I don't want to own them, and
I doubt Alessandro does either. If their Kconfig
is going to change, I'd rather just see them all
flagged as deprecated ... with plans to delete them.

The RTCs in question being:

"RTC" ... replaced by new "rtc-cmos"
--> ready to deprecate now ?

"JS_RTC" ... a SPARC32 thing
--> bug?? no "js-rtc.c" in the tree! patch sent

"SGI_DS1286" ...
--> needs conversion to new framework

"SGI_IP27_RTC" ...
--> needs conversion to new framework

"GEN_RTC", "GEN_RTC_X" ... I never really saw the point
--> who uses this?

"EFI_RTC" ... IA64 only
--> needs conversion to new framework

"DS1302" ... M32R-specific, "rtc-ds1302" should replace it
--> ready to deprecate now?

Plus there are various chunks of RTC code elsewhere in the tree,
mostly in arch subdirectories, which should be phased out but
aren't such obvious targets.


> I didn't find it at all obvious, and I still don't know which set my
> configured kernel is actually using.

If you enable the new framework, that's what it's
using; there should be no other options visible.
(At least, none that are even as loosely organized
as the drivers/char stuff.)

Else ... it's clearly not enabled! So it's some
other (legacy) RTC driver. I don't see the issue.

- Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/