]> git.baikalelectronics.ru Git - kernel.git/commit
dell-laptop: Don't read-back sw_state on machines with a hardware switch
authorHans de Goede <hdegoede@redhat.com>
Sun, 17 Nov 2013 13:00:21 +0000 (14:00 +0100)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 20 Nov 2013 23:50:48 +0000 (18:50 -0500)
commite20ba2e4b9a0835717db100fc2bcfb1b701b1bab
tree0f942eb7eee3ca03b5b2c811b8a32f5217b4bf90
parenta49ba1ccf31432e9bfa84a4ac445d3bf27f0a1e9
dell-laptop: Don't read-back sw_state on machines with a hardware switch

On machines with a hardware switch, the blocking settings can not be changed
through a Fn + wireless-key combo, so there is no reason to read back the
blocking state from the BIOS.

Reading back is not only not necessary it is actually harmful, since on some
machines the blocking state will be cleared to all 0 after a wireless switch
toggle, even for radios not controlled by the hw-switch (yeah firmware bugs).

This causes "magic" changes to the sw_state. This is inconsistent with other
rfkill drivers which preserve the sw_state over a hw kill on / off.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/dell-laptop.c