]> git.baikalelectronics.ru Git - kernel.git/commit
xo1-rfkill: only act when blocked state is changed
authorDaniel Drake <dsd@laptop.org>
Wed, 18 Apr 2012 17:08:21 +0000 (18:08 +0100)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:23:39 +0000 (14:23 -0400)
commit053ff280db25cf15efef481e7df13d7160f507d1
tree099863503d7c95b356bab64fd88e831ec8e9b4b8
parentf2ac3a88ac77fe52109786dfde1ad141a408cc10
xo1-rfkill: only act when blocked state is changed

The XO-1 rfkill driver should only send EC commands when changing
between blocked/unblocked state.

The rfkill switch is asked to be unblocked on every resume (even when
the card was never blocked before) and sending a EC_WLAN_LEAVE_RESET
command here upsets the resume sequence of the libertas driver. Adding
the check to avoid the spurious EC_WLAN_LEAVE_RESET fixes the wifi resume
behaviour.

The rfkill state is maintained by the hardware over suspend/resume
so no extra consideration is needed here.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/xo1-rfkill.c