]> git.karo-electronics.de Git - linux-beck.git/commit
iwlwifi: pcie: lock start_hw / start_fw / stop_device
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 11 Jun 2015 17:45:49 +0000 (20:45 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Fri, 26 Jun 2015 06:00:26 +0000 (09:00 +0300)
commitfa9f3281cbb1075545d4528c84059a3f4e117b44
tree426a4698c9780e96ef5cb34eafe0b1b227336ed4
parent012c02c15ac63b0b26c7f058c744e85cb563a737
iwlwifi: pcie: lock start_hw / start_fw / stop_device

This allows to ensure that we don't have races between them.
A user reported that stop_device was called twice upon
rfkill interrupt after suspend. When the interrupts are
enabled, and right after when we directly check the rfkill
state.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/drv.c
drivers/net/wireless/iwlwifi/pcie/internal.h
drivers/net/wireless/iwlwifi/pcie/rx.c
drivers/net/wireless/iwlwifi/pcie/trans.c