]> git.baikalelectronics.ru Git - kernel.git/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)
commit2c4c2d1be3bdf4072472a5c940aea977ec056e58
tree3db67324dc6c1b5021e383d41e253261bc5638de
parent82f5bdf1e0345d5008b2233c57567c7b2df6b6f0
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