]> git.baikalelectronics.ru Git - kernel.git/commit
eeepc-laptop: read rfkill soft-blocked state on resume
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Tue, 16 Jun 2009 13:53:52 +0000 (14:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Jun 2009 15:50:17 +0000 (11:50 -0400)
commit8300c980562e1ea482d0d6c0b2599fbe8e4d20bc
treec64eee66425c46d34c266dc106c1a8f51e4cafca
parent37ba1572ac4eb9f16f2e85cb3b3a5a53ef9f0b3d
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>
drivers/platform/x86/eeepc-laptop.c