OSDN Git Service

eeepc-laptop: read rfkill soft-blocked state on resume
authorCorentin Chary <corentincj@iksaif.net>
Sun, 27 Sep 2009 18:36:31 +0000 (20:36 +0200)
committerCorentin Chary <corentincj@iksaif.net>
Wed, 30 Sep 2009 20:17:42 +0000 (22:17 +0200)
commita3088b3bd22afbb1befa11ef740a9daf7490b002
tree9f14ddfc7f697793749f821169fc122416409107
parent7f3448449993f35be62d92d07ef051b420386a0c
eeepc-laptop: read rfkill soft-blocked state on resume

This will respect state changes over hibernation, e.g. if the user
disables the wireless in the BIOS setup screen.

It reveals an issue where ACPI silently kills the wireless on
suspend.  Normally, the BIOS restores the correct state from
non-volatile storage on boot.  But when hibernation is aborted,
the wireless would remain killed.  Fortunately we can work around
this in the resume handler by simply writing back the same value we
read from NVS.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
drivers/platform/x86/eeepc-laptop.c