acer-wmi: does not set persistence state by rfkill_init_sw_state
authorChun-Yi Lee <joeyli.kernel@gmail.com>
Mon, 28 Mar 2011 08:52:02 +0000 (16:52 +0800)
committerBrad Figg <brad.figg@canonical.com>
Wed, 27 Apr 2011 18:41:31 +0000 (11:41 -0700)
commitcd5be6ae396e8244976d170003bbf319cda4cea5
tree47d95641d20738bd8845add9a88dea2dfdce89d2
parent0382f31821680aad254f637088eef83b1e144c4e
acer-wmi: does not set persistence state by rfkill_init_sw_state

BugLink: http://bugs.launchpad.net/bugs/761134

commit 8215af019040ce9182728afee9642d8fdeb17f59 upstream.

Acer BIOS keeps devices state when system reboot, but reset to default
device states (Wlan on, Bluetooth off, wwan on) if system cold boot.
That means BIOS's initial state is not always real persistence.

So, removed rfkill_init_sw_state because it sets initial state to
persistence then replicate to other new killswitch when rfkill-input
enabled.
After removed it, acer-wmi set initial soft-block state after rfkill
register, and doesn't allow set_block until rfkill initial finished.

Reference: bko#31002
https://bugzilla.kernel.org/show_bug.cgi?id=31002

Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Cc: OldÅ\99ich JedliÄ\8dka <oldium.pro@seznam.cz>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Chun-Yi Lee <jlee@novell.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/platform/x86/acer-wmi.c