linux/drivers/platform/x86
Henrique de Moraes Holschuh 08fedfc903 thinkpad-acpi: fix bluetooth/wwan resume
Studying the DSDTs of various thinkpads, it looks like bit 3 of the
argument to SBDC and SWAN is not "set radio to last state on resume".
Rather, it seems to be "if this bit is set, enable radio on resume,
otherwise disable it on resume".

So, the proper way to prepare the radios for S3 suspend is: disable
radio and clear bit 3 on the SBDC/SWAN call to to resume with radio
disabled, and enable radio and set bit 3 on the SBDC/SWAN call to
resume with the radio enabled.

Also, for persistent devices, the rfkill core does not restore state,
so we really need to get the firmware to do the right thing.

We don't sync the radio state on suspend, instead we trust the BIOS to
not do anything weird if we never touched the radio state since boot.
Time will tell if that's a wise way of doing things...

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: stable@kernel.org
2010-02-25 22:22:07 -03:00
..
Kconfig eeepc-laptop: switch to using sparse keymap library 2010-01-16 01:49:41 -05:00
Makefile classmate-laptop: add support for Classmate PC ACPI devices 2009-12-24 01:16:04 -05:00
acer-wmi.c acer-wmi: Respect current backlight level when loading 2010-02-19 00:19:26 -05:00
acerhdf.c drivers/platform/x86/acerhdf.c: check BIOS information whether it begins with string of table 2009-12-24 00:17:09 -05:00
asus-laptop.c asus-laptop: change light sens default values. 2009-12-15 20:01:36 -05:00
asus_acpi.c asus_acpi: convert to seq_file 2009-12-24 00:14:51 -05:00
classmate-laptop.c classmate-laptop: add support for Classmate PC ACPI devices 2009-12-24 01:16:04 -05:00
compal-laptop.c drop explicit include of autoconf.h 2009-12-12 13:08:15 +01:00
dell-laptop.c dell-laptop: add __init to init functions 2009-12-10 00:02:31 -05:00
dell-wmi.c dell-wmi - fix condition to abort driver loading 2009-12-30 02:49:03 -05:00
eeepc-laptop.c eeepc-laptop: disable wireless hotplug for 1201N 2010-01-16 01:50:05 -05:00
fujitsu-laptop.c Merge branch 'misc-2.6.33' into release 2009-12-24 01:19:00 -05:00
hp-wmi.c hp-wmi: remove double free caused by merge conflict 2010-01-01 14:04:25 -05:00
intel_menlow.c ACPICA: Add post-order callback to acpi_walk_namespace 2009-11-24 21:31:10 -05:00
msi-laptop.c
msi-wmi.c dell-wmi, hp-wmi, msi-wmi: check wmi_get_event_data() return value 2009-12-30 02:48:52 -05:00
panasonic-laptop.c Merge branches 'release', 'APERF', 'ARAT', 'misc', 'kelvin', 'device-lock' and 'bjorn.notify' into release 2009-04-07 18:18:42 -04:00
sony-laptop.c sony-laptop - fix using of uninitialized variable 2010-01-16 15:55:43 -05:00
tc1100-wmi.c tc1100-wmi - switch to using dev_pm_ops 2009-12-16 12:53:33 -05:00
thinkpad_acpi.c thinkpad-acpi: fix bluetooth/wwan resume 2010-02-25 22:22:07 -03:00
topstar-laptop.c topstar-laptop: add new driver for hotkeys support on Topstar N01 2009-09-19 01:16:13 -04:00
toshiba_acpi.c toshiba_acpi: convert to seq_file 2009-12-24 00:15:10 -05:00
toshiba_bluetooth.c Toshiba Bluetooth Enabling driver (RFKill handler v3) 2009-12-16 12:09:46 -05:00
wmi.c ACPI: WMI: Survive BIOS with duplicate GUIDs 2009-12-30 02:49:04 -05:00