]> Pileus Git - ~andy/linux/commit
dell-laptop: Sync current block state to BIOS on hw switch change
authorHans de Goede <hdegoede@redhat.com>
Sun, 17 Nov 2013 13:00:23 +0000 (14:00 +0100)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 20 Nov 2013 23:50:48 +0000 (18:50 -0500)
commit04c9a3a06c47b337b90a91e458716262cc45b103
tree3db67324dc6c1b5021e383d41e253261bc5638de
parent4d39d88ceb83e88953a76df8b1fa10f43f328038
dell-laptop: Sync current block state to BIOS on hw switch change

This is necessary for 3 reasons:
1) To apply sw_state changes made while hw-blocked
2) To set all the blocked bits for hw-switch controlled radios to 1 when the
   switch gets changed to off, this is necessary on some models to actually
   turn the radio status LEDs off.
3) On some models non hw-switch controlled radios will have their block bit
   cleared (potentially undoing a soft-block) on hw-switch toggle, this
   restores the sw-block in this case.

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