]> git.karo-electronics.de Git - linux-beck.git/commit
iwlwifi: pcie: speed up the Tx DMA stop flow
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 25 Feb 2015 13:49:39 +0000 (15:49 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 12 Mar 2015 07:57:35 +0000 (09:57 +0200)
commit36277234da673293a6afe60ac19a79d20bce9ae5
treeb02d71de933456cd88bba7e14a7e6ba84adcac18
parent7a42baa621538eb73b261828027b1faa25e341e6
iwlwifi: pcie: speed up the Tx DMA stop flow

We don't need to acquire MAC access for each access, it
makes much more sense to keep the MAC access. This speeds
up the Tx DMA stop flow significantly.
Moreover, if one channel can't be stopped, stop the others
but don't poll for them to avoid being stuck there for a
long time.

This solves a situation in which we were stuck in that flow
for way too long with a spinlock held which led to a kernel
panic.

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