iwlwifi: pcie: add basic reference accounting
authorEliad Peller <eliad@wizery.com>
Thu, 20 Nov 2014 15:33:43 +0000 (17:33 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 28 Dec 2014 18:00:18 +0000 (20:00 +0200)
commit7616f334e6d441aa9824221b1352ebec9de57ad7
treefb5806f182791d19c932fe2f790a7c400d57a53d
parenta549b296228497cec90d3a5f5ecaa1934cec4bf1
iwlwifi: pcie: add basic reference accounting

Implement the ref/unref trans ops and track both tx and
host command queues (and hold references while they
are not empty).

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-drv.c
drivers/net/wireless/iwlwifi/iwl-modparams.h
drivers/net/wireless/iwlwifi/pcie/internal.h
drivers/net/wireless/iwlwifi/pcie/trans.c
drivers/net/wireless/iwlwifi/pcie/tx.c