From: Corentin Chary <corentincj@iksaif.net>
To: Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org, Corentin Chary <corentincj@iksaif.net>
Subject: [PATCH 4/5] eeepc-laptop: add hotplug_disable parameter
Date: Wed, 6 Jan 2010 22:07:40 +0100 [thread overview]
Message-ID: <1262812061-4119-5-git-send-email-corentincj@iksaif.net> (raw)
In-Reply-To: <1262812061-4119-4-git-send-email-corentincj@iksaif.net>
Some new models need to disable wireless hotplug.
For the moment, we don't know excactly what models need that,
except 1005HA.
Users will be able to use that param as a workaround.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
---
drivers/platform/x86/eeepc-laptop.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c
index 07d7978..8ee0cd1 100644
--- a/drivers/platform/x86/eeepc-laptop.c
+++ b/drivers/platform/x86/eeepc-laptop.c
@@ -50,6 +50,14 @@ MODULE_AUTHOR("Corentin Chary, Eric Cooper");
MODULE_DESCRIPTION(EEEPC_LAPTOP_NAME);
MODULE_LICENSE("GPL");
+static bool hotplug_disabled;
+
+module_param(hotplug_disabled, bool, 0644);
+MODULE_PARM_DESC(hotplug_disabled,
+ "Disable hotplug for wireless device. "
+ "If your laptop need that, please report to "
+ "acpi4asus-user@lists.sourceforge.net.");
+
/*
* Definitions for Asus EeePC
*/
@@ -1356,6 +1364,8 @@ static int __devinit eeepc_acpi_add(struct acpi_device *device)
strcpy(acpi_device_class(device), EEEPC_ACPI_CLASS);
device->driver_data = eeepc;
+ eeepc->hotplug_disabled = hotplug_disabled;
+
eeepc_dmi_check(eeepc);
result = eeepc_acpi_init(eeepc, device);
--
1.6.6
next prev parent reply other threads:[~2010-01-06 21:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-06 21:07 [PATCH 0/5] eeepc-laptop updates for 2.6.33-rc4 Corentin Chary
2010-01-06 21:07 ` [PATCH 1/5] eeepc-laptop: disable cpu speed control on EeePC 701 Corentin Chary
2010-01-06 21:07 ` [PATCH 2/5] eeepc-laptop: dmi blacklist to disable pci hotplug code Corentin Chary
2010-01-06 21:07 ` [PATCH 3/5] eeepc-laptop: switch to using sparse keymap library Corentin Chary
2010-01-06 21:07 ` Corentin Chary [this message]
2010-01-06 21:07 ` [PATCH 5/5] eeepc-laptop: disable wireless hotplug for 1201N Corentin Chary
2010-01-16 6:58 ` [PATCH 0/5] eeepc-laptop updates for 2.6.33-rc4 Len Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1262812061-4119-5-git-send-email-corentincj@iksaif.net \
--to=corentincj@iksaif.net \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox