iwlwifi: pcie: disable interrupts upon PCIe alloc
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Apr 2014 13:03:11 +0000 (16:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:22 +0000 (10:28 -0700)
commit83134b6448d894e1842bbd765a87a456b5c67a1e
tree46bd9cb92b7e9735f004078d0c9ecc168e51fc37
parent753f4d8c21fee8d6c10943fc509f5a293208b14e
iwlwifi: pcie: disable interrupts upon PCIe alloc

commit 83f7a85f1134c6e914453f5747435415a23d516b upstream.

In case RFKILL is in KILL position, the NIC will issue an
interrupt straight away. This interrupt won't be sent
because it is masked in the hardware.
But if our interrupt service routine is called for another
reason (SHARED_IRQ), then we'll look at the interrupt cause
and service it. This can cause bad things if we are not
ready yet.
Explicitly clean the interrupt cause register to make sure
we won't service anything before we are ready to.

Reported-and-tested-by: Alexander Monakov <amonakov@gmail.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/pcie/trans.c