]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: disable interrupts upon PCIe alloc
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Apr 2014 13:03:11 +0000 (16:03 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 7 May 2014 19:54:32 +0000 (22:54 +0300)
commite678846702af7aa50c709ec71dfd6bee760267db
treebd233a654083e8734e6fd629f00bdde2aba7c57a
parent79e4cf3397b1749b01f33284a8e52095a44d9473
iwlwifi: pcie: disable interrupts upon PCIe alloc

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.

Cc: <stable@vger.kernel.org> [3.14]
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>
drivers/net/wireless/iwlwifi/pcie/trans.c