]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.32.12/eeepc-laptop-add-hotplug_disable-parameter.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 2.6.32.12 / eeepc-laptop-add-hotplug_disable-parameter.patch
CommitLineData
9659d8ac
GKH
1From: Corentin Chary <corentincj@iksaif.net>
2Date: Wed, 6 Jan 2010 22:07:40 +0100
3Subject: eeepc-laptop: add hotplug_disable parameter
4
5commit 322a1356be96bcc4b97e8e370f6468c821330077 upstream.
6
7Some new models need to disable wireless hotplug.
8For the moment, we don't know excactly what models need that,
9except 1005HA.
10Users will be able to use that param as a workaround.
11
12[bwh: Backported to 2.6.32]
13
14Signed-off-by: Corentin Chary <corentincj@iksaif.net>
15Signed-off-by: Len Brown <len.brown@intel.com>
16Cc: Ben Hutchings <ben@decadent.org.uk>
17Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18
19---
20 drivers/platform/x86/eeepc-laptop.c | 10 ++++++++++
21 1 file changed, 10 insertions(+)
22
23--- a/drivers/platform/x86/eeepc-laptop.c
24+++ b/drivers/platform/x86/eeepc-laptop.c
25@@ -254,6 +254,14 @@ MODULE_AUTHOR("Corentin Chary, Eric Coop
26 MODULE_DESCRIPTION(EEEPC_HOTK_NAME);
27 MODULE_LICENSE("GPL");
28
29+static bool hotplug_disabled;
30+
31+module_param(hotplug_disabled, bool, 0644);
32+MODULE_PARM_DESC(hotplug_disabled,
33+ "Disable hotplug for wireless device. "
34+ "If your laptop need that, please report to "
35+ "acpi4asus-user@lists.sourceforge.net.");
36+
37 /*
38 * ACPI Helpers
39 */
40@@ -1305,6 +1313,8 @@ static int __devinit eeepc_hotk_add(stru
41 device->driver_data = ehotk;
42 ehotk->device = device;
43
44+ ehotk->hotplug_disabled = hotplug_disabled;
45+
46 eeepc_dmi_check();
47
48 result = eeepc_hotk_check();