Skip to contentSkip to conversation

x86: Add amilo-rfkill driver for some Fujitsu-Siemens Amilo laptops

PATCH Superseded Ben Hutchings 2 participants 2 messages Nov 9, 2011 x86 platform drivers

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Add amilo-rfkill driver for some Fujitsu-Siemens Amilo laptops

An rfkill driver based on the fsaa1655g and fsam7440 drivers for Fujitsu-Siemens Amilo A1655 and M7440 models found at:

http://sourceforge.net/projects/fsaa1655g/
http://sourceforge.net/projects/fsam7440/

This adds DMI matching and replaces the procfs files with rfkill devices.

---
 drivers/platform/x86/Kconfig        |    7 ++
 drivers/platform/x86/Makefile       |    1 +
 drivers/platform/x86/amilo-rfkill.c |  187 +++++++++++++++++++++++++++++++++++
 3 files changed, 195 insertions(+), 0 deletions(-)
 create mode 100644 drivers/platform/x86/amilo-rfkill.c
drivers/platform/x86/Kconfig +7 -0
index f4e3d82..c5936e7 100644
@@ -141,6 +141,13 @@ config FUJITSU_LAPTOP_DEBUG
 
 	  If you are not sure, say N here.
 
+config AMILO_RFKILL
+	tristate "Fujitsu-Siemens Amilo rfkill support"
+	depends on RFKILL
+	---help---
+	  This is a driver for enabling wifi on some Fujitsu-Siemens Amilo
+	  laptops.
+
 config TC1100_WMI
 	tristate "HP Compaq TC1100 Tablet WMI Extras (EXPERIMENTAL)"
 	depends on !X86_64
drivers/platform/x86/Makefile +1 -0
index 293a320..3acbaad 100644
@@ -17,6 +17,7 @@ obj-$(CONFIG_ACER_WMI)		+= acer-wmi.o
 obj-$(CONFIG_ACERHDF)		+= acerhdf.o
 obj-$(CONFIG_HP_ACCEL)		+= hp_accel.o
 obj-$(CONFIG_HP_WMI)		+= hp-wmi.o
+obj-$(CONFIG_AMILO_RFKILL)	+= amilo-rfkill.o
 obj-$(CONFIG_TC1100_WMI)	+= tc1100-wmi.o
 obj-$(CONFIG_SONY_LAPTOP)	+= sony-laptop.o
 obj-$(CONFIG_IDEAPAD_LAPTOP)	+= ideapad-laptop.o
drivers/platform/x86/amilo-rfkill.c new file +187 -0

187 lines not on this page · raw message

Signature · 1 line
1.7.7
#1 lore raw

drivers/platform/x86/amilo-rfkill.c line 26

Quoted 4 lines · Ben Hutchings
drivers/platform/x86/amilo-rfkill.c new file +4 -0
+static bool init_blocked = false;
+
+/* Initial state set by 'radio' parameter, as in the fsaa1655g driver */
+module_param_named(radio, init_blocked, invbool, 0);

I wonder what you need this for -- it shouldn't be necessary and the way rfkill_init_sw_state() works might cause unexpected behaviour. I recommend leaving that out, if you do leave it out rfkill will set the desired state of the device as soon as the device is registered.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html