iwlwifi: stop interrupts before stopping device
authorDavid Spinadel <david.spinadel@intel.com>
Sun, 12 Aug 2012 05:14:04 +0000 (08:14 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 10 Sep 2012 17:11:53 +0000 (19:11 +0200)
commitee7d737c45440062320c16bc7ad7bb5c9fe8888e
treead83c629957e422bc3b61526179e5e928dda8d9a
parent8b61fa242ce56838ce1c41db3692b64b4c344776
iwlwifi: stop interrupts before stopping device

If an RX interrupt is signalled after or during apm_stop
we may try to access the peripherals which are already
down. Prevent this by disabling interrupts first.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c