From: Johannes Berg Date: Thu, 27 Feb 2014 10:20:07 +0000 (+0100) Subject: iwlwifi: pcie: clarify RX queue need_update handling and locking X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~279^2^2~54^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d63f926d119ff2394514ade4d489566a575f897;p=pandora-kernel.git iwlwifi: pcie: clarify RX queue need_update handling and locking When shadow registers are enabled, then need_update never needs to be set, so move the need_update handling into the function that really needs to do it (iwl_pcie_rxq_inc_wr_ptr) and also separate the check when it woke up. While at it, convert it to bool. This also clarifies the locking and means the irq_lock needs to no longer be held for any such updates. The irq_lock also doesn't have to be held for restocking since everything else locks the RX queue properly, so remove that and finally disentangle the two locks entirely so there aren't any dependencies between the two left. Signed-off-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed