Re: 2.6.25-rc7: Ugh.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Mark Lord <lkml@...>, David Miller <davem@...>, <jkosina@...>, <gregkh@...>, <linux-kernel@...>, <linux-usb@...>, <pavel@...>, <akpm@...>, <rtc-linux@...>
Date: Friday, March 28, 2008 - 5:49 am

On Friday 28 March 2008, Ingo Molnar wrote:

I merged the two patches (gentle, then harsh) so the result is
smaller.  Here you go.

- dave


========== CUT HERE
Prevent the most significant RTC configuration problems:

 - If the new RTC framework is enabled, don't allow any of the
   legacy drivers to be configured.

 - When using generic RTC on x86, enable rtc-cmos by default.

It seems too many people are used to enabling a legacy RTC despite 
the Kconfig help/comments; the gentle approach hasn't worked.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
 drivers/char/Kconfig |    8 ++++++++
 drivers/rtc/Kconfig  |    5 +----
 2 files changed, 9 insertions(+), 4 deletions(-)

--- linux-2.6.orig/drivers/char/Kconfig	2008-03-28 02:35:58.000000000 -0700
+++ linux-2.6/drivers/char/Kconfig	2008-03-28 02:39:17.000000000 -0700
@@ -704,6 +704,12 @@ config NVRAM
 	  To compile this driver as a module, choose M here: the
 	  module will be called nvram.
 
+#
+# These legacy RTC drivers just cause too many conflicts with the generic
+# RTC framework ... let's not even try to coexist any more.
+#
+if RTC_LIB=n
+
 config RTC
 	tristate "Enhanced Real Time Clock Support"
 	depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV && !ARM && !SUPERH && !S390
@@ -812,6 +818,8 @@ config DS1302
 	  will get access to the real time clock (or hardware clock) built
 	  into your computer.
 
+endif # RTC_LIB
+
 config COBALT_LCD
 	bool "Support for Cobalt LCD"
 	depends on MIPS_COBALT
--- linux-2.6.orig/drivers/rtc/Kconfig	2008-03-28 02:35:58.000000000 -0700
+++ linux-2.6/drivers/rtc/Kconfig	2008-03-28 02:39:12.000000000 -0700
@@ -20,10 +20,6 @@ menuconfig RTC_CLASS
 
 if RTC_CLASS
 
-if GEN_RTC || RTC
-comment "Conflicting RTC option has been selected, check GEN_RTC and RTC"
-endif
-
 config RTC_HCTOSYS
 	bool "Set system time from RTC on startup and resume"
 	depends on RTC_CLASS = y
@@ -303,6 +299,7 @@ comment "Platform RTC drivers"
 config RTC_DRV_CMOS
 	tristate "PC-style 'CMOS'"
 	depends on X86 || ALPHA || ARM || M32R || ATARI || PPC || MIPS
+	default y if X86
 	help
 	  Say "yes" here to get direct support for the real time clock
 	  found in every PC or ACPI-based system, and some other boards.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25-rc7: Ugh. , Mark Lord, (Thu Mar 27, 11:29 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Thu Mar 27, 10:14 pm)
Re: 2.6.25-rc7: Ugh., Pavel Machek, (Fri Mar 28, 5:24 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Sun Mar 30, 5:04 pm)
Re: 2.6.25-rc7: Ugh., Oliver Neukum, (Mon Mar 31, 7:55 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Mon Mar 31, 10:39 am)
Re: 2.6.25-rc7: Ugh., Oliver Neukum, (Mon Mar 31, 11:04 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Mon Mar 31, 11:04 am)
Re: 2.6.25-rc7: Ugh., Oliver Neukum, (Mon Mar 31, 12:37 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Mon Mar 31, 1:03 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Mon Mar 31, 1:15 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Mon Mar 31, 1:21 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Mon Mar 31, 1:30 pm)
Re: 2.6.25-rc7: Ugh., Oliver Neukum, (Mon Mar 31, 2:05 pm)
Re: 2.6.25-rc7: Ugh., Pavel Machek, (Tue Apr 1, 5:59 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Mon Mar 31, 3:21 pm)
Re: 2.6.25-rc7: Ugh., Oliver Neukum, (Wed Apr 2, 4:04 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Wed Apr 2, 10:38 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Wed Apr 2, 10:38 am)
Re: 2.6.25-rc7: Ugh., Alan Stern, (Wed Apr 2, 11:08 am)
Re: 2.6.25-rc7: Ugh., David Brownell, (Wed Apr 2, 12:04 pm)
[PATCH] usb ehci_iaa_watchdog fix, Mark Lord, (Wed Apr 2, 12:20 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, David Brownell, (Wed Apr 2, 12:56 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, Alan Stern, (Wed Apr 2, 12:48 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, David Brownell, (Wed Apr 2, 4:31 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, Alan Stern, (Wed Apr 2, 4:55 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, David Brownell, (Wed Apr 2, 7:07 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, Mark Lord, (Wed Apr 2, 1:34 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, Mark Lord, (Wed Apr 2, 2:08 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, Alan Stern, (Wed Apr 2, 3:20 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, David Brownell, (Wed Apr 2, 4:42 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, Alan Stern, (Wed Apr 2, 5:08 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, David Brownell, (Mon Apr 7, 7:37 pm)
Re: [PATCH] usb ehci_iaa_watchdog fix, Alan Stern, (Mon Apr 7, 10:13 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Wed Apr 2, 12:09 pm)
Re: 2.6.25-rc7: Ugh., David Brownell, (Wed Apr 2, 4:22 pm)
Re: 2.6.25-rc7: Ugh. ---&gt; PATCH, Mark Lord, (Wed Apr 2, 11:44 am)
Re: 2.6.25-rc7: Ugh. ---&gt; PATCH, Alan Stern, (Wed Apr 2, 4:09 pm)
Re: 2.6.25-rc7: Ugh. ---&gt; PATCH, Mark Lord, (Wed Apr 2, 11:47 am)
Re: 2.6.25-rc7: Ugh. ---&gt; PATCH, Mark Lord, (Wed Apr 2, 11:49 am)
2.6.25-rc7/rc8 USB dead on resume, Mark Lord, (Wed Apr 2, 11:05 am)
Re: 2.6.25-rc7/rc8 USB dead on resume, Oliver Neukum, (Wed Apr 2, 11:21 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Mon Mar 31, 1:06 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Mon Mar 31, 11:14 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Sun Mar 30, 5:09 pm)
Re: 2.6.25-rc7: Ugh., Rafael J. Wysocki, (Thu Mar 27, 6:00 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Fri Mar 28, 1:22 am)
Re: 2.6.25-rc7: Ugh., Greg KH, (Thu Mar 27, 12:07 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Thu Mar 27, 10:11 pm)
Re: 2.6.25-rc7: Ugh., Alan Stern, (Fri Mar 28, 10:34 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Fri Mar 28, 10:57 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Thu Mar 27, 10:13 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Thu Mar 27, 9:51 pm)
Re: 2.6.25-rc7: Ugh., Jiri Kosina, (Thu Mar 27, 8:32 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Thu Mar 27, 9:57 pm)
Re: 2.6.25-rc7: Ugh., David Miller, (Thu Mar 27, 11:12 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Fri Mar 28, 1:46 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Fri Mar 28, 1:52 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Fri Mar 28, 2:05 am)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Fri Mar 28, 11:58 pm)
Re: 2.6.25-rc7: Ugh., David Brownell, (Fri Mar 28, 2:58 am)
Re: 2.6.25-rc7: Ugh., Ingo Molnar, (Fri Mar 28, 5:16 am)
Re: 2.6.25-rc7: Ugh., David Brownell, (Fri Mar 28, 5:49 am)
Re: 2.6.25-rc7: Ugh., Jan Engelhardt, (Fri Mar 28, 10:56 am)
Re: 2.6.25-rc7: Ugh., Adrian Bunk, (Fri Mar 28, 1:47 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Fri Mar 28, 9:47 am)
Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), David Brownell, (Fri Mar 28, 4:04 pm)
Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), Adrian Bunk, (Fri Mar 28, 5:06 pm)
Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), David Brownell, (Fri Mar 28, 5:23 pm)
Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), Adrian Bunk, (Fri Mar 28, 5:33 pm)
Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), David Brownell, (Fri Mar 28, 5:45 pm)
Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), Adrian Bunk, (Fri Mar 28, 5:59 pm)
Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), David Brownell, (Fri Mar 28, 6:18 pm)
Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), Adrian Bunk, (Fri Mar 28, 6:36 pm)
Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), Tilman Schmidt, (Fri Mar 28, 8:51 am)
Re: Kconfig RTC selection (was: 2.6.25-rc7: Ugh.), David Brownell, (Fri Mar 28, 3:22 pm)
Re: Kconfig RTC selection, Tilman Schmidt, (Sat Mar 29, 8:55 am)
Re: Kconfig RTC selection, Mark Lord, (Fri Mar 28, 9:49 am)
Re: 2.6.25-rc7: Ugh., Ingo Molnar, (Fri Mar 28, 6:20 am)
Re: 2.6.25-rc7: Ugh., Jan Engelhardt, (Fri Mar 28, 11:03 am)
Re: 2.6.25-rc7: Ugh., David Brownell, (Fri Mar 28, 4:14 pm)
Re: 2.6.25-rc7: Ugh., Pavel Machek, (Fri Mar 28, 7:01 am)
Re: 2.6.25-rc7: Ugh., Mike Galbraith, (Fri Mar 28, 1:36 am)
Re: 2.6.25-rc7: Ugh., Bob Tracy, (Fri Mar 28, 12:42 am)
Re: 2.6.25-rc7: Ugh., David Miller, (Fri Mar 28, 12:56 am)
Re: 2.6.25-rc7: Ugh., Bill Davidsen, (Sat Apr 5, 2:23 pm)
Re: 2.6.25-rc7: Ugh., Bob Tracy, (Fri Mar 28, 12:34 pm)
Re: 2.6.25-rc7: Ugh., Mark Lord, (Fri Mar 28, 1:17 am)
Re: 2.6.25-rc7: Ugh., , (Fri Mar 28, 2:01 am)