]>
Commit | Line | Data |
---|---|---|
9659d8ac GKH |
1 | From: Corentin Chary <corentincj@iksaif.net> |
2 | Date: Wed, 6 Jan 2010 22:07:40 +0100 | |
3 | Subject: eeepc-laptop: add hotplug_disable parameter | |
4 | ||
5 | commit 322a1356be96bcc4b97e8e370f6468c821330077 upstream. | |
6 | ||
7 | Some new models need to disable wireless hotplug. | |
8 | For the moment, we don't know excactly what models need that, | |
9 | except 1005HA. | |
10 | Users will be able to use that param as a workaround. | |
11 | ||
12 | [bwh: Backported to 2.6.32] | |
13 | ||
14 | Signed-off-by: Corentin Chary <corentincj@iksaif.net> | |
15 | Signed-off-by: Len Brown <len.brown@intel.com> | |
16 | Cc: Ben Hutchings <ben@decadent.org.uk> | |
17 | Signed-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(); |