aboutsummaryrefslogtreecommitdiffstats
diff options
-rw-r--r--config_hotplug-should-be-always-on.patch43
-rw-r--r--series3
-rw-r--r--tile-remove-duplicate-config_hotplug-definition.patch34
-rw-r--r--xtensa-remove-duplicate-config_hotplug-definition.patch44
4 files changed, 124 insertions, 0 deletions
diff --git a/config_hotplug-should-be-always-on.patch b/config_hotplug-should-be-always-on.patch
new file mode 100644
index 00000000000000..b1155f2b3da816
--- /dev/null
+++ b/config_hotplug-should-be-always-on.patch
@@ -0,0 +1,43 @@
+From foo@baz Tue Sep 4 16:42:42 PDT 2012
+Date: Tue, 04 Sep 2012 16:42:42 -0700
+To: Greg KH <gregkh@linuxfoundation.org>
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Subject: CONFIG_HOTPLUG should be always on
+
+CONFIG_HOTPLUG is a very old option, back when we had static systems and it was
+odd that any type of device would be removed or added after the system had
+started up. It is quite hard to disable it these days, and even if you do, it
+only saves you about 200 bytes. However, if it is disabled, lots of bugs show
+up because it is almost never tested if the option is disabled.
+
+This is a step to eventually just remove the option entirely, which will clean
+up all of the devinit* variable and function pointer options, that everyone
+(myself include) ends up getting wrong eventually, causing real problems when
+memory segments are removed yet we don't expect them to be.
+
+Cc: Geert Uytterhoeven <geert@linux-m68k.org>
+Cc: Ralf Baechle <ralf@linux-mips.org>
+Cc: Bjorn Helgaas <bhelgaas@google.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ init/Kconfig | 8 +-------
+ 1 file changed, 1 insertion(+), 7 deletions(-)
+
+--- a/init/Kconfig
++++ b/init/Kconfig
+@@ -1201,13 +1201,7 @@ config KALLSYMS_ALL
+ Say N unless you really need all symbols.
+
+ config HOTPLUG
+- bool "Support for hot-pluggable devices" if EXPERT
+- default y
+- help
+- This option is provided for the case where no hotplug or uevent
+- capabilities is wanted by the kernel. You should only consider
+- disabling this option for embedded systems that do not use modules, a
+- dynamic /dev tree, or dynamic device discovery. Just say Y.
++ def_bool y
+
+ config PRINTK
+ default y
diff --git a/series b/series
index 4d9e0329bfc83c..c6a901b0e54947 100644
--- a/series
+++ b/series
@@ -1,4 +1,7 @@
# My specific stuff, at the top to make it easier to work stuff below.
+xtensa-remove-duplicate-config_hotplug-definition.patch
+tile-remove-duplicate-config_hotplug-definition.patch
+config_hotplug-should-be-always-on.patch
usb-serial-add-zte_ev.c-driver.patch
time-don-t-inline-export_symbol-functions.patch
gregkh/gkh-version.patch
diff --git a/tile-remove-duplicate-config_hotplug-definition.patch b/tile-remove-duplicate-config_hotplug-definition.patch
new file mode 100644
index 00000000000000..4ef69dd163d43d
--- /dev/null
+++ b/tile-remove-duplicate-config_hotplug-definition.patch
@@ -0,0 +1,34 @@
+From foo@baz Tue Sep 4 15:30:17 PDT 2012
+Date: Tue, 04 Sep 2012 15:30:17 -0700
+To: Greg KH <gregkh@linuxfoundation.org>
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Subject: tile: remove duplicate CONFIG_HOTPLUG definition
+
+As part of the plan to remove CONFIG_HOTPLUG, it was found that tile
+duplicates this config option for no reason (it's already defined as part of
+init/Kconfig). This patch removes it from the tile-only Kconfig file.
+
+Cc: Chris Metcalf <cmetcalf@tilera.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/tile/Kconfig | 8 --------
+ 1 file changed, 8 deletions(-)
+
+--- a/arch/tile/Kconfig
++++ b/arch/tile/Kconfig
+@@ -412,14 +412,6 @@ config TILE_USB
+ config NEED_BOUNCE_POOL
+ def_bool USB_OHCI_HCD
+
+-config HOTPLUG
+- bool "Support for hot-pluggable devices"
+- ---help---
+- Say Y here if you want to plug devices into your computer while
+- the system is running, and be able to use them quickly. In many
+- cases, the devices can likewise be unplugged at any time too.
+- One well-known example of this is USB.
+-
+ source "drivers/pci/hotplug/Kconfig"
+
+ endmenu
diff --git a/xtensa-remove-duplicate-config_hotplug-definition.patch b/xtensa-remove-duplicate-config_hotplug-definition.patch
new file mode 100644
index 00000000000000..2a7b8eaa7db134
--- /dev/null
+++ b/xtensa-remove-duplicate-config_hotplug-definition.patch
@@ -0,0 +1,44 @@
+From foo@baz Tue Sep 4 15:30:17 PDT 2012
+Date: Tue, 04 Sep 2012 15:30:17 -0700
+To: Greg KH <gregkh@linuxfoundation.org>
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Subject: xtensa: remove duplicate CONFIG_HOTPLUG definition
+
+As part of the plan to remove CONFIG_HOTPLUG, it was found that xtensa
+duplicates this config option for no reason (it's already defined as part of
+init/Kconfig). This patch removes it from the xtensa-only Kconfig file.
+
+Cc: Chris Zankel <chris@zankel.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/xtensa/Kconfig | 18 ------------------
+ 1 file changed, 18 deletions(-)
+
+--- a/arch/xtensa/Kconfig
++++ b/arch/xtensa/Kconfig
+@@ -172,24 +172,6 @@ config CMDLINE
+
+ source "mm/Kconfig"
+
+-config HOTPLUG
+- bool "Support for hot-pluggable devices"
+- help
+- Say Y here if you want to plug devices into your computer while
+- the system is running, and be able to use them quickly. In many
+- cases, the devices can likewise be unplugged at any time too.
+-
+- One well known example of this is PCMCIA- or PC-cards, credit-card
+- size devices such as network cards, modems or hard drives which are
+- plugged into slots found on all modern laptop computers. Another
+- example, used on modern desktops as well as laptops, is USB.
+-
+- Enable HOTPLUG and build a modular kernel. Get agent software
+- (from <http://linux-hotplug.sourceforge.net/>) and install it.
+- Then your kernel will automatically call out to a user mode "policy
+- agent" (/sbin/hotplug) to load modules and set up software needed
+- to use devices as you hotplug them.
+-
+ source "drivers/pcmcia/Kconfig"
+
+ source "drivers/pci/hotplug/Kconfig"